From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5014 invoked by alias); 19 Oct 2011 06:34:15 -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: 16518 Received: (qmail 5103 invoked from network); 19 Oct 2011 06:34:04 -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: <111018233342.ZM8415@torch.brasslantern.com> Date: Tue, 18 Oct 2011 23:33:42 -0700 In-reply-to: Comments: In reply to Gabriel Gilder "Re: How to turn off Mac OS X Network share completion?" (Oct 18, 5:53pm) 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, 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.