zsh-users
 help / color / mirror / code / Atom feed
From: Gabriel Gilder <gabriel.gilder@gmail.com>
To: zsh-users@zsh.org
Subject: Re: How to turn off Mac OS X Network share completion?
Date: Tue, 18 Oct 2011 17:53:31 -0700	[thread overview]
Message-ID: <F8DB3C1A-4E2E-4FCB-939B-9FEE56087E97@gmail.com> (raw)
In-Reply-To: <4CBE5AC0-6C49-4BA3-B803-91957D411809@gmail.com>

After a lot of banging my head against the wall, I figured out my problem, so I figured I'd post it here for anyone experiencing similar issues.

I included this line in my configuration:

zstyle ':completion:*' users ''

And now, mercifully, no user directories are used for completion. Whew!

-Gabriel


On Oct 18, 2011, at 12:31 AM, Gabriel Gilder wrote:

> Hi there,
> 
> I've just switched to zsh from bash so apologies if this is a total newbie question. I've searched the list and done quite a bit of Googling but couldn't find a solution.
> 
> 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, so when I type, for instance, "cd adam<TAB>", the shell freezes up for about a minute while it searches across the network, and then I get a menu of usernames like so:
> 
> adam0        adam1     adam2     adam3        adam4       adam5   
> 
> (Actual names redacted.)
> 
> Then if I run "cd adam0" I'm taken to something like "/Network/Servers/example.com/Volumes/misc/adam0".
> 
> This seems to be the default behavior if I have these lines in my .zshrc:
> 
> autoload -U compinit
> compinit
> 
> Is there a flag to turn off this type of completion across network shares?
> 
> Thanks in advance for any pointers,
> 
> -Gabriel
> 
> 


  reply	other threads:[~2011-10-19  0:53 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 [this message]
2011-10-19  6:33   ` Bart Schaefer
2011-10-19  2:33 ` Bart Schaefer

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=F8DB3C1A-4E2E-4FCB-939B-9FEE56087E97@gmail.com \
    --to=gabriel.gilder@gmail.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).