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

Re: Cygwin Zsh auto-cygpath?



"Benjamin R. Haskell" wrote:
> I was wondering if there was a simple way to have the _files completer 
> output "$(cygpath -w /path/stuff)".

Completely replacing the output of a completion functions may be doable
though is likely to be icky, but note that if you define a function

  cyg() {
    reply=("$(cygpath -w $REPLY)")
  }

in a recent version of the shell then you can put "(+cyg)" (minus
quotes, with parentheses---it's a glob qualifer) after any file name to
convert it.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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