* Tip of the day: automounted home directories
@ 2005-11-30 13:14 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2005-11-30 13:14 UTC (permalink / raw)
To: Zsh users list
Here's how to get completion for home directories under /home which are
handled by the automounter, assuming the automounter is using
/etc/auto.home:
homes=($(awk '$1 !~ /^#/ { print $1 }' /etc/auto.home))
zstyle ':completion:*' fake-files "/home:$homes"
unset homes
If the automounter is using the NIS map auto.home, change the first line
to:
homes=($(ypcat -k auto.home | awk '{ print $1 }'))
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-30 13:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-30 13:14 Tip of the day: automounted home directories Peter Stephenson
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).