Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Cygwin Zsh auto-cygpath?
- X-seq: zsh-users 13806
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Cygwin Zsh auto-cygpath?
- Date: Sat, 7 Feb 2009 15:53:08 -0500 (EST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
On Windows machines, I use Zsh under Cygwin. The more I use it, the more
frequently I find myself using:
"$(cygpath -w /path/to/some/file)"
For those who don't use Cygwin, that "Windows-ifies" the path.
e.g.
$ pwd
/cygdrive/c/Documents and Settings/bhaskell/My Documents
$ cygpath -w $PWD
C:\Documents and Settings\bhaskell\My Documents
It's necessary to do that for most Windows-native commands, since they
don't (and shouldn't) know about the '/cygdrive' prefix, and usually don't
handle forward-slash'ed paths.
I was wondering if there was a simple way to have the _files completer
output "$(cygpath -w /path/stuff)". Has anyone created something like
that? Or could someone point me to where I'd want to insert that into the
completion process?
(This is the first time I've seriously considered delving into 'man
zshcompsys', but I unfortunately don't have that kind of time right
now...) :-\
Best,
Ben
Messages sorted by:
Reverse Date,
Date,
Thread,
Author