Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tab complete automounted directories
- X-seq: zsh-users 8318
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Tab complete automounted directories
- Date: Wed, 29 Dec 2004 19:30:43 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041228200912.GG23142@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
* Travis Spencer (2004-12-28 21:09 +0100)
> 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).
compctl? Aaargh.
Use the new completion system:
zstyle ':completion:*' fake-files '/:automnt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author