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

Re: Cygwin path completion



> I meant something different. I'd prefer if
> /c/d/t would still complete to /cygdrive/d/temp. I meant, that
> _path_files (BTW I agree that it already deserves to be converted to
> shell code. It may even give old compctl the ability to complete paths)
> should simply stuff cygdrive as first component. In the above case the
> possible completions would consist of

This is far too specific to be hard-wired into _path_files, but maybe
there's some way of specifying transformations.  I still don't understand
how that helps you since I don't see when you want cygdrive to be the first
component.  It seems to me you should be using a named directory or
something, e.g.

c=/cygdrive
: ~c
echo ~c/d/...

You can hardly get fewer characters than that.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



Messages sorted by: Reverse Date, Date, Thread, Author