This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to complete in /cygdrive and //server/share in zsh


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]