G. S.
G. S.

Reputation: 301

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: 1088

Answers (1)

G. S.
G. S.

Reputation: 301

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