From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11226 invoked from network); 28 Mar 2004 19:56:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 28 Mar 2004 19:56:32 -0000 Received: (qmail 29673 invoked by alias); 28 Mar 2004 19:56:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7278 Received: (qmail 29639 invoked from network); 28 Mar 2004 19:56:19 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 28 Mar 2004 19:56:19 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 28 Mar 2004 19:56:19 -0000 Received: (qmail 2655 invoked from network); 28 Mar 2004 19:56:19 -0000 Received: from wbar3.sjo1-4-11-009-147.sjo1.dsl-verizon.net (HELO candle.brasslantern.com) (4.11.9.147) by a.mx.sunsite.dk with SMTP; 28 Mar 2004 19:56:17 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i2SJuFj26216 for zsh-users@sunsite.dk; Sun, 28 Mar 2004 11:56:15 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040328195615.ZM26215@candle.brasslantern.com> Date: Sun, 28 Mar 2004 19:56:15 +0000 In-Reply-To: <20040328104221.GA2642@eumel.yoo.net> Comments: In reply to Thorsten Haude "Completion for cd" (Mar 28, 12:42pm) References: <20040328104221.GA2642@eumel.yoo.net> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh User ML Subject: Re: Completion for cd MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: **** X-Spam-Status: No, hits=4.7 required=6.0 tests=RCVD_IN_DYNABLOCK, RCVD_IN_NJABL,RCVD_IN_NJABL_DIALUP,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 4.7 On Mar 28, 12:42pm, Thorsten Haude wrote: } } one of the last upgrades of Zsh in Debian Sarge changed the way } directory names for cd are completed. With the current set of } functions, user's home directories are completed, which is a nuisance. [...] } 2. I would like to do the change in a way that does not interfere with } future updates from Debian's package management system. Any ideas? This should all be controllable by styles. Start by typing (where "zsh% " represents your prompt); zsh% cd ~ Now type ctrl+x and then h. You should see something like: tags in context :completion::complete:-tilde-:: users named-directories directory-stack (_tilde) users (_users _tilde) If instead you see tags in context :completion::complete:cd:: (followed by some list of tags), then something is wrong, because the "# Note we need a tilde because ..." code that you quoted should be effectively dead now -- it's there only as a failsafe and I can't find a way to force the _wanted call in that branch to be executed. (Maybe Oliver or PWS can?) Assuming you've got the -tilde- context, you can just set the tag-order style to omit the users tag: zstyle ':completion:*:complete:-tilde-:*' tag-order '! users' Et voila.