Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Tab complete automounted directories



* 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