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

Re: Directory completion



try:

compctl -g '*(-/)' c cd pushd




On Tue, Oct 27, 1998 at 02:00:13AM +0000, Gossamer wrote:
> 
> I have cd aliased to 'c', and wanted to get it so it only completed
> on directories ... the obvious seemed to be this:


^^^^^^^^^^^^^^


Geesh, and i though i was lazy :)


Mike

> 
> compctl -g '*(/)' c
> 
> but it chokes on symlinks.  How do I get it to recognize symlinked
> directories too?  I have quite a lot of them around.
> 
> 
> bekj
> 
> -- 
> : --Neophilic-Hacker-Grrl-Geek-Eclectic-Gay-Disabled-Boychick--
> : gossamer@xxxxxxxxxxxxxx  http://www.tertius.net.au/~gossamer/
> : If you can spend a perfectly useless afternoon in a perfectly
> : useless manner, you have learned how to live.  -- Lin Yutang



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