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

Re: cd directory completion?



On Mon, 23 Aug 1999, Dominik Vogt wrote:

> Um, I think that's not the correct syntax, at least not for
> 3.0.6:
> 
>   # compctl -/ cd
>   compctl: bad option: -/
> 
> I'll settle for
> 
>   compctl -n -g '*(-/) .*(-/) cd pushd
> 
> instead. Many thanks

Hmm. I don't know if it does in 3.0.6, but in 3.1.5, this does not
complete .., so you always have to add the '/' if you want to cd
../something. I use the following:
compctl -g '*(-/)' + -g '..' + -g '.*(-/)' cd chdir dirs pushd

Greetings, Swen




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