Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Cygwin Zsh auto-cygpath?
- X-seq: zsh-users 13807
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Cygwin Zsh auto-cygpath?
- Date: Mon, 09 Feb 2009 16:15:45 +0000
- In-reply-to: <alpine.LNX.2.00.0902071548460.17369@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <alpine.LNX.2.00.0902071548460.17369@xxxxxxxxxxxxxxxxxxx>
"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