zsh and dot-directory completions

I blog so I don’t forget. At least that’s what I’m telling me right now 🙂 .

So. To make zsh complete – for example – “cd ..” (it should append a “/” on TAB, right?) set the following in the .zshrc:

setopt autocd
zstyle ':completion:*' special-dirs true    # please complete "cd .._/_" ...

Great. Of course from Stackoverflow.

Leave a Reply

Your email address will not be published. Required fields are marked *