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

Re: Directory completion



On Oct 27,  2:00am, Gossamer wrote:
> Subject: Directory completion
> 
> compctl -g '*(/)' c
> 
> but it chokes on symlinks.  How do I get it to recognize symlinked
> directories too?

There's a whole thread about this in the zsh-users archive.  Go to

	http://www.zsh.org/cgi-bin/mla/wilma/users

and search for

	completion on cd

The short answer is

	compctl -g '*(D-/)' cd

Leave out the D if you don't want to complete directories whose names
start with a "." character.



Messages sorted by: Reverse Date, Date, Thread, Author