G. S.
G. S.

Reputation: 321

How can I add completion in zsh on macOS for 'cd ..'?

I found some questions and answers on stackoverflow but nothing worked for me.

Upvotes: 3

Views: 1100

Answers (1)

G. S.
G. S.

Reputation: 321

My solution is to put this into ~/.zshrc:

zstyle ':completion:*' special-dirs true
autoload -Uz compinit && compinit

This works for me on macOS 10.15.4 with zsh 5.7.1.

I couldn't answer or comment on the exiting because my 'reputation' was too low.

Upvotes: 5

Related Questions