Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Support for inverting of options?
- X-seq: zsh-users 11850
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Support for inverting of options?
- Date: Sun, 16 Sep 2007 17:06:05 -0700
- In-reply-to: <2d460de70709161549o56ffc1ees5a9b1413fb1bb5c6@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70709141729y392e7b2dmf137334dc2ee4eec@xxxxxxxxxxxxxx> <070914233613.ZM6486@xxxxxxxxxxxxxxxxxxxxxx> <2d460de70709161417x1e6557c0n4f9ee8a1b2f18df2@xxxxxxxxxxxxxx> <070916153114.ZM21571@xxxxxxxxxxxxxxxxxxxxxx> <2d460de70709161549o56ffc1ees5a9b1413fb1bb5c6@xxxxxxxxxxxxxx>
On Sep 17, 12:49am, Richard Hartmann wrote:
}
} Disadvantages of your solution over a native invoption are that you can
} not use the normal setopt and that you can not tab complete on
} invoption without writing a new completion.
Change the name of the function from ":set" to "setopt" and replace the
"setopt" in the "do" loop with "builtin setopt".
Or just do
compdef :set=setopt
Either way, some matcher-list styles would deal with ignoring the "inv"
at the beginning of the option names, I think.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author