Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vi editting troubles
- X-seq: zsh-workers 14463
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: vi editting troubles
- Date: Wed, 23 May 2001 12:31:47 -0700
- In-reply-to: <Pine.LNX.4.33L2.0105231114560.12475-100000@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.33L2.0105231114560.12475-100000@xxxxxxxxxxxxxxx>
On May 23, 11:18am, Wayne Davison wrote:
>
> An off-the-cuff suggestion: Would it be possible to have the C code
> call a "set completion defaults" shell function
The problem with any shell-function-based solution is that it requires a
special case for the `localoptions' setting.
Better, perhaps, would be to augment the _comp_options variable with a
_comp_setup variable, which would look something like this:
_comp_setup='setopt ${_comp_options[@]} localtraps;
exec </dev/null;
trap - ZERR'
and then `eval' that variable in any function that is an entry point into
the completion system.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author