Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Can we have an additional output option for setopt?
>>>>> On January 19, 2012 Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> showoptions() {
> local k
> zmodload -i zsh/parameter
>
> for k in ${(ok)options}; do
> printf "%-20s\t%s\n" $k ${options[$k]}
> done
> }
I have almost exactly that function, except I do
for k in ${@:-${(ok)options}}; do
so I can optionally specify a list of options on the
command line, and set up completion appropriately.
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author