Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion on cd



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