From: wjf103@york.ac.uk (Wez Furlong)
To: zsh-users@math.gatech.edu
Subject: Helpful username completion
Date: Tue, 10 Jun 1997 21:48:34 +0100 [thread overview]
Message-ID: <199706102048.VAA02067@sgi20.york.ac.uk> (raw)
Just a helpful bit of compctl for zsh users at sites with a large number
of user accounts.
At York we have 11000 users which means a LONG wait for zsh to hash all
of them if you accidentally hit TAB too early...
This compctl was written by a friend and is great:
trusted=(auser anotheruser myfriend)
compctl -C -c -x 'W[0,\~*/*]' -g '*(-*,-/)' - 's[~]' -k trusted -S '/'
compctl -g '*(D,-/)' -x 'C[0,\~*/*]' -g '*(D,-/)' - 's[~]' -k\
trusted -S '/' -- cd
[\ denotes line continuation at the end of the second compctl line]
The net result is that zsh will only complete the list of users in the
trusted array after a ~
[example: before]
% ~a
[Press Tab]
[Long Wait]
Do you wish to see all 1000 possibilities?
[example2: after]
% ~a
[Press Tab]
auser anotheruser
Much nicer :)
Hope some of you find it helpful; full credit goes to my friend Alan who
is also a student here at York.
TTFN
--
Wez - Electronics Undergraduate at the University of York
URL : http://www.twinklestar.demon.co.uk/
Insult Of The Day: Thou clouted swag-bellied flirt-gill!
next reply other threads:[~1997-06-10 20:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-10 20:48 Wez Furlong [this message]
1997-06-11 8:31 ` Vincent Lefevre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199706102048.VAA02067@sgi20.york.ac.uk \
--to=wjf103@york.ac.uk \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).