From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15669 invoked from network); 6 Aug 2006 08:36:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Aug 2006 08:36:06 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 83204 invoked from network); 6 Aug 2006 08:35:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Aug 2006 08:35:57 -0000 Received: (qmail 12702 invoked by alias); 6 Aug 2006 08:35:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10582 Received: (qmail 12692 invoked from network); 6 Aug 2006 08:35:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Aug 2006 08:35:48 -0000 Received: (qmail 82261 invoked from network); 6 Aug 2006 08:35:48 -0000 Received: from jlefevre.net1.nerim.net (HELO ay.vinc17.org) (80.65.226.245) by a.mx.sunsite.dk with SMTP; 6 Aug 2006 08:35:46 -0000 Received: from lefevre by ay.vinc17.org with local (Exim 4.62) (envelope-from ) id 1G9e6o-00075B-Fn; Sun, 06 Aug 2006 10:35:43 +0200 Date: Sun, 6 Aug 2006 10:35:41 +0200 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: Turn off completion of users Message-ID: <20060806083541.GK27637@ay.vinc17.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20060803155512.GC1118@roadrunner.aventurien.local> <200608031616.k73GGIcT028006@news01.csr.com> <20060803170656.GD1118@roadrunner.aventurien.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060803170656.GD1118@roadrunner.aventurien.local> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.12-vl-r13409 (2006-08-03) 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 # 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / SPACES project at LORIA