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 23:33:42 -0700	[thread overview]
Message-ID: <111018233342.ZM8415@torch.brasslantern.com> (raw)
In-Reply-To: <F8DB3C1A-4E2E-4FCB-939B-9FEE56087E97@gmail.com>

On Oct 18,  5:53pm, Gabriel Gilder wrote:
}
} I included this line in my configuration:
} 
} zstyle ':completion:*' users ''
} 
} And now, mercifully, no user directories are used for completion. Whew!

I'm glad that helped, but it doesn't explain why user names were being
completed for "cd" in the first place.

However, the answer has to be that the CDABLE_VARS option is set:

CDABLE_VARS (-T)
     If the argument to a cd command (or an implied cd with the AUTO_CD
     option set) is not a directory, and does not begin with a slash,
     try to expand the expression as if it were preceded by a `~' (see
     *Note Filename Expansion::).

I never use that, so I didn't recognize/recall that it will attempt to
complete user home directory names.

You may want to consider making the context for that zstyle more specific,
e.g.

	zstyle -a :completion::complete:cd::users ''

so that you can still get user names completed in other situations.


  reply	other threads:[~2011-10-19  6: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 [this message]
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=111018233342.ZM8415@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).