How to complete in /cygdrive and //server/share in zsh
Andrej Borsenkow
Andrej.Borsenkow@mow.siemens.ru
Fri Jul 6 04:28:00 GMT 2001
If you are using current zsh and new completion (compinit), you can complete
inside of /cygdrive and network share using fake-files style. E.g. with
zstyle ':completion:*' fake-files /:cygdrive '/cygdrive:c d e h' //:itsrm2
'//itsrm2:source Linux'
ls /c/d/m/cTAB
gives you
ls /cygdrive/d/My\ Downloads/cygwin
and
ls //i/l/m/u
results in
ls //itsrm2/Linux/Mandrake/updates
(of course, to get case-insensitive completion a bit more setup is needed).
Parsing output of mount and net view (to get one-for-all startup file) is
left for reader :-)
-andrej
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list