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

Tab complete automounted directories



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