Macos – Zsh gives “permission denied” error on iTerm2

iterm2macospermissionszsh

I configured my zsh by downloading the latest using homebrew on Yosemite. So the default shell is /usr/local/bin/zsh on iTerm2 application.

However, when I try the command

$ ..  
$ zsh: permission denied: ..  

It doesn't output the directory contents as it is supposed to. Can I also try other features to verify if zsh shell is configured correctly?

Best Answer

You need to add

setopt autocd

to your ~/.zshrc file to be able to change dirs this way. See http://zsh.sourceforge.net/Doc/Release/Options.html#index-AUTOCD for more info.

Related Question