Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Asking ZSH: How are you ?
- X-seq: zsh-users 9086
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- Subject: Re: Asking ZSH: How are you ?
- Date: Sun, 10 Jul 2005 09:18:00 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <m6b6fm1b79y7.13jinvogu8q6.dlg@xxxxxxxxxx>
- Mail-followup-to: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050709.165213.74740823.Meino.Cramer@xxxxxx> <20050709151736.GA382@DervishD> <m6b6fm1b79y7.13jinvogu8q6.dlg@xxxxxxxxxx>
Hi Thorsten :)
* Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx> dixit:
> > for option in ${(ko)options}; print ${(r:21:}option $options[$option]
> Isn't that a bit "too much"?
>
> "autoload -U allopt; allopt" or "set -o" shows you all options and
> there state.
Have you looked at the code for 'allopt'? I think that *that* is
too much ;) This is shorter and produces more or less the same
results. And you can store it in a function, of course. The only
advantage of 'allopt' is that it accepts a list of names or part of
names to search for using grep. But that is easily added to the
above, too.
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author