zsh-users
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.org>
To: zsh-users@sunsite.dk
Subject: Re: Turn off completion of users
Date: Sun, 6 Aug 2006 10:35:41 +0200	[thread overview]
Message-ID: <20060806083541.GK27637@ay.vinc17.org> (raw)
In-Reply-To: <20060803170656.GD1118@roadrunner.aventurien.local>

On 2006-08-03 19:06:56 +0200, Ulrich Spoerlein wrote:
> Peter Stephenson wrote:
> > This is because of the option "cdablevars".  This makes it possible for
> > "cd user" to behave the same as "cd ~user"; it works for user
> > directories and named directories (i.e. where ~var behaves like $var)
> > alike, since those deliberately have the same behaviour.  If you're not
> > using that, you can "unsetopt cdablevars".
> 
> Splendid!
> 
> Thanks to you and Bart for pointing me to the right direction.

Alternatively, if you still want cdablevars, but disable users and
named directories in the first completion choices, you can use that:

# Suggestion from
#   From: Peter Stephenson <pws@csr.com>
#   Date: Thu, 11 Mar 2004 12:28:17 +0000
#   Subject: Re: cd completion and CDABLE_VARS
#   To: zsh-users@sunsite.dk
#   Message-ID: <14646.1079008097@csr.com>
# to disable named directories in the first completion choices.
zstyle ':completion:*:complete:(cd|pushd):*' tag-order \
  'local-directories path-directories directory-stack' '*'

Works very well for me.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


  reply	other threads:[~2006-08-06  8:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-03 15:55 Ulrich Spoerlein
2006-08-03 16:16 ` Peter Stephenson
2006-08-03 17:06   ` Ulrich Spoerlein
2006-08-06  8:35     ` Vincent Lefevre [this message]
2006-08-03 16:42 ` 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=20060806083541.GK27637@ay.vinc17.org \
    --to=vincent@vinc17.org \
    --cc=zsh-users@sunsite.dk \
    /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).