Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Tab complete automounted directories
- X-seq: zsh-users 8317
- From: Travis Spencer <tspencer+zsh@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Tab complete automounted directories
- Date: Tue, 28 Dec 2004 12:09:12 -0800
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Travis Spencer <tspencer+zsh@xxxxxxxxxx>
I would like zsh to list possible completions available for
automounted directories in /pkgs and /stash on my school's network. I
read through the mailing list archive, and this is what I came up
with:
compctl -Tx 's[/pkgs/] C[0,^/pkgs/*/*]' -S / -s '$(ypcat auto_pkgs | \
awk '\''{print $NF}'\'' FS=/ | grep "[[:alpha:]]$")'
compctl -Tx 's[/stash/] C[0,^/stash/*/*]' -S/ -s '$(ypcat auto.stash | \
awk '\''{print $NF}'\'' FS=/ | grep "[[:alpha:]]$")'
I put both of these in my .zshrc file, but doing `ls /pkgs/<TAB>'
doesn't present all possible completions (only the ones that are
already mounted).
What am I missing?
--
Regards,
Travis Spencer
Messages sorted by:
Reverse Date,
Date,
Thread,
Author