Zsh: permission denied when changing directories

I have recently installed zsh on Arch where there was only bash shell. And now I have a problem. I’ve used the zsh before and I know that it should let you change working directories by just typing the path to it. But when I try to do so, zsh tells:
zsh: permission denied: /home/wrabbit
When using cd ~, works fine.
I don’t want to give all my files all the permissions, I know it should work from start like cd works. But how to make it work?

~/.zshrc file:

zstyle :compinstall filename '/home/wrabbit/.zshrc'

autoload -Uz compinit promptinit
compinit
promptinit

Add this line to your ~/.zshrc:

setopt autocd
3 Likes

Wow, I’ve just found the answer in the depths of the internet, and you’ve answered here.
Though the command that worked was:
setopt auto_cd

Not sure if an underscore matters.
Sorry for hassling, thank you!

See man 1 zshoptions