Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion on cd
- X-seq: zsh-workers 3738
- From: Wessel Dankers <wsldanke@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: Completion on cd
- Date: Wed, 28 Jan 1998 09:54:54 +0100 (MET)
- In-reply-to: <199801280058.RAA25088@xxxxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author