This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
How to complete in /cygdrive and //server/share in zsh
- To: "Cygwin List" <Cygwin at Sourceware dot Cygnus dot Com>
- Subject: How to complete in /cygdrive and //server/share in zsh
- From: "Andrej Borsenkow" <Andrej dot Borsenkow at mow dot siemens dot ru>
- Date: Fri, 6 Jul 2001 15:28:04 +0400
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/