From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12159 invoked from network); 1 Apr 2004 18:24:25 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Apr 2004 18:24:25 -0000 Received: (qmail 18274 invoked by alias); 1 Apr 2004 18:24:06 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7311 Received: (qmail 18263 invoked from network); 1 Apr 2004 18:24:05 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 1 Apr 2004 18:24:05 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 1 Apr 2004 18:24:5 -0000 Received: (qmail 21263 invoked from network); 1 Apr 2004 18:24:05 -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; 1 Apr 2004 18:24:02 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i31IO0r13099 for zsh-users@sunsite.dk; Thu, 1 Apr 2004 10:24:00 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <040401102400.ZM13098@candle.brasslantern.com> Date: Thu, 1 Apr 2004 10:24:00 -0800 In-Reply-To: <20040331202229.GJ1065@eumel.yoo.net> Comments: In reply to Thorsten Haude "Re: Completion for cd" (Mar 31, 10:22pm) References: <20040328104221.GA2642@eumel.yoo.net> <1040328195615.ZM26215@candle.brasslantern.com> <20040331202229.GJ1065@eumel.yoo.net> X-Mailer: Z-Mail Lite (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 31, 10:22pm, Thorsten Haude wrote: > > * Bart Schaefer wrote (2004-03-28 21:56): > > > > zsh% cd ~ > > > >Now type ctrl+x and then h. > > Ok, what are these? What to search for in the manual to read up on > these things? They're the contexts and tags used for setting completion styles. "man zshcompsys" or the equivalent info doc pages. > >You should see something like: > > > > tags in context :completion::complete:-tilde-:: > > Well, something seems to be *very* wrong because I see this: > > tags in context :completion::expand::: Aha! You're using the _expand completer. That's where those home directories are coming from. Various styles you can experiment with (you probably don't want to start with all of them at once): zstyle ':completion:*:expand:*' keep-prefix true zstyle ':completion:*:expand:*' accept-exact continue zstyle ':completion:*:expand:*' subst-globs-only true I find the accept-exact one to be the most useful.