From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Oliver Kiddle" <okiddle@yahoo.co.uk>,
"Vin Shelton" <acs@alumni.princeton.edu>, <zsh-users@sunsite.dk>
Subject: RE: Completions under NT / cygwin
Date: Fri, 16 Mar 2001 09:23:16 +0300 [thread overview]
Message-ID: <000001c0ade1$95ea9700$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <20010315190112.42653.qmail@web9302.mail.yahoo.com>
> An alternative to Andrej's suggestion which I have used is to use
> something like:
>
> for drive in a b c d k p r; hash -d $drive=/cygdrive/$drive
>
> in .zshrc. Then you can refer to other drives with, for example ~c/
> Completion after that works fine (unless it requires something else in
> my setup).
>
> For some reason if you omit the hash -d and just set the variable, i.e.
> for d in a b c; $d=/cygdrive/$d
> I get error messages like this:
> /home/administrator/.zshrc:48: no such file or directory: r=/cygdrive/r
> Note that this is a fairly old version of zsh so this might be fixed by
> now - I only rarely use cygwin.
>
I doubt that. /cygdrive/r is pure virtual "directory" which means, any normal
file operation on it fails. Zsh probably tries to stat it.
fake-files was invented exactly to allow /cygdrive/x completion under cygwin.
It works nicely. Note, that it will work in *any* context where filename is
expected.
-andrej
prev parent reply other threads:[~2001-03-16 6:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-15 3:32 Vin Shelton
2001-03-15 6:20 ` Andrej Borsenkow
2001-03-15 19:01 ` Oliver Kiddle
2001-03-16 6:23 ` Andrej Borsenkow [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001c0ade1$95ea9700$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=acs@alumni.princeton.edu \
--cc=okiddle@yahoo.co.uk \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).