Zsh gives "permission denied" error on iTerm2

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?

4

1 Answer

You need to add

setopt autocd

to your ~/.zshrc file to be able to change dirs this way. See for more info.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like