From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2773 invoked by alias); 19 Oct 2011 02:34:17 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16517 Received: (qmail 161 invoked from network); 19 Oct 2011 02:34:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <111018193337.ZM8319@torch.brasslantern.com> Date: Tue, 18 Oct 2011 19:33:37 -0700 In-reply-to: <4CBE5AC0-6C49-4BA3-B803-91957D411809@gmail.com> Comments: In reply to Gabriel Gilder "How to turn off Mac OS X Network share completion?" (Oct 18, 12:31am) References: <4CBE5AC0-6C49-4BA3-B803-91957D411809@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: How to turn off Mac OS X Network share completion? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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.