From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6464 invoked from network); 28 Jan 1998 08:58:28 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 28 Jan 1998 08:58:28 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id DAA21222; Wed, 28 Jan 1998 03:53:12 -0500 (EST) Resent-Date: Wed, 28 Jan 1998 03:53:12 -0500 (EST) X-Authentication-Warning: dis.cs.ruu.nl: wsldanke owned process doing -bs Date: Wed, 28 Jan 1998 09:54:54 +0100 (MET) From: Wessel Dankers To: zsh-workers@math.gatech.edu Subject: Re: Completion on cd In-Reply-To: <199801280058.RAA25088@empire.Central.Sun.COM> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"JSFRM1.0.UB5.u7lpq"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3738 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Tue, 27 Jan 1998, Steve Talley wrote: > > # cd/pushd only directories or symbolic links to directories. If none of those > > # match, resort to shell variables > > compctl -g '*(-/)' + -g '.*(-/)' -v cd pushd rmdir This one works! > also known as > > compctl -g '(.*|*)(-/)' So does this one, although it might be too eager (depends on your taste): it also shows .dirs if you don't enter a dot at all. Thanks for the suggestions! BTW, does this mean globbing-compctl should always use something like -g 'foo' + -g '.foo' in it? Seems a little clumsy to me. -- Wessel Dankers