zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: How to turn off Mac OS X Network share completion?
Date: Tue, 18 Oct 2011 19:33:37 -0700	[thread overview]
Message-ID: <111018193337.ZM8319@torch.brasslantern.com> (raw)
In-Reply-To: <4CBE5AC0-6C49-4BA3-B803-91957D411809@gmail.com>

On Oct 18, 12:31am, Gabriel Gilder wrote:
}
} I'm often on a VPN for my company, and when I'm on the VPN a number
} of servers appear in Mac OS X's "/Network/Servers" path. The problem
} is that zsh tries to complete across these directories

What's the value of $PWD at the time you try this?  If you're not
already cd'd into /Network/Servers, "cd" shouldn't be completing
those servers ... so the next thing to check is whether some
helpful sysadmin has added /Network/Servers to everyone's $cdpath
(or did you perhaps add that yourself?).

Otherwise I don't know why "cd" would be looking anywhere outside your
current directory for completions.

} Then if I run "cd adam0" I'm taken to something like
} "/Network/Servers/example.com/Volumes/misc/adam0".

Yeah, it sure appears that someone has futzed with $cdpath for whatever
reason.

} Is there a flag to turn off this type of completion across network shares?

Not precisely, because zsh normally generates the possible matching
files and then prunes that set down to those that are desired, so
even using the ignored-patterns file won't keep zsh from searching
for the names in order to ignore them.

There might be something that can be done with the "fake" style but
usually it's for the opposite case, forcing a network share to seem
to be available when it isn't yet.

You need to find out why those paths are being considered in the first
place.


      parent reply	other threads:[~2011-10-19  2:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-18  7:31 Gabriel Gilder
2011-10-19  0:53 ` Gabriel Gilder
2011-10-19  6:33   ` Bart Schaefer
2011-10-19  2:33 ` Bart Schaefer [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=111018193337.ZM8319@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /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).