Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: no "users" tag used in _users?
- X-seq: zsh-workers 22190
- From: Danek Duvall <duvall@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: no "users" tag used in _users?
- Date: Fri, 3 Feb 2006 12:25:48 -0800
- In-reply-to: <20060203194638.GD23141@xxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Danek Duvall <duvall@xxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060203194638.GD23141@xxxxxxxxxxxxxxxxxxxxx>
Also, it's frustrating that if what's on the commandline can't match to
something in the users style, then it necessarily looks in userdirs. I'd
rewrite _users to be
#compdef passwd groups userdel chage chfn chsh
local expl users
zstyle -a ":completion:${curcontext}:" users users && {
_wanted users expl user compadd "$@" -a users
return 0
}
_wanted users expl user compadd "$@" -k userdirs
(or something equivalent) to match _hosts. Basically, groping through the
entire user or host lists in an environment that has about 50k entries in
each database is painful, even allowing for caching, so I want to have
styles that avoid this as much as possible.
Thanks,
Danek
Messages sorted by:
Reverse Date,
Date,
Thread,
Author