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

Re: cd ..<tab>?



On Jan 30, 12:10am, Dennis Haney wrote:
> Subject: Re: cd ..<tab>?
> 
> Sven Wischnowsky wrote:
> >
> >  zstyle ':completion:*' special-dirs ..
> >
> >to make `..' be considered a possible match (and hence it will get the
> >slash appended).
> >
> Is there a way to make this work properly with setopt GLOB_DOTS?

Just make the style more specific:

  zstyle ':completion:*:(cd|chdir|pushd|popd):*' special-dirs ..

You might also check the documentation for the ignore-parents style.



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