From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3395 invoked from network); 2 Apr 2004 16:12:31 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Apr 2004 16:12:31 -0000 Received: (qmail 25793 invoked by alias); 2 Apr 2004 16:12:01 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7316 Received: (qmail 25753 invoked from network); 2 Apr 2004 16:12:00 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 2 Apr 2004 16:12:00 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 2 Apr 2004 16:11:59 -0000 Received: (qmail 15803 invoked from network); 2 Apr 2004 16:11:59 -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; 2 Apr 2004 16:11:57 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i32GBuu14333 for zsh-users@sunsite.dk; Fri, 2 Apr 2004 08:11:56 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <040402081155.ZM14332@candle.brasslantern.com> Date: Fri, 2 Apr 2004 08:11:55 -0800 In-Reply-To: <20040402065247.GB862@eumel.yoo.net> Comments: In reply to Thorsten Haude "Re: Completion for cd" (Apr 2, 8:52am) References: <20040328104221.GA2642@eumel.yoo.net> <1h76677mo3oj$.dlg@thorstenkampe.de> <20040328203421.GA768@eumel.yoo.net> <20040331201900.GI1065@eumel.yoo.net> <040401100439.ZM13083@candle.brasslantern.com> <20040401204424.GI994@eumel.yoo.net> <1040402043837.ZM13655@candle.brasslantern.com> <20040402065247.GB862@eumel.yoo.net> X-Mailer: Z-Mail Lite (5.0.0 30July97) To: zsh-users@sunsite.dk 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 Apr 2, 8:52am, Thorsten Haude wrote: > > yooden@eumel % cd n > tags in context :completion::complete:cd:: > local-directories named-directories (_alternative _cd) > users named-directories directory-stack (_tilde _alternative _cd) > users (_users _tilde _alternative _cd) > > Well, there are users. How to remove them? zstyle ':completion::complete:cd::' tag-order '! users' - Should do it. If you want it to complete users if and only if it can't complete anything else, drop the trailing "-". (Note that "users" won't be removed from the output, but you should find that it doesn't complete them any more.) You might want to use ':completion:*:complete:cd:*' in case cd is used in some other context, but that's "less specific" than the version without the "*" for purposes of compsys selecting the most specific style.