/Users/myname
zsh: permission denied: /Users/myname
I already gave the terminal full disc access and restarted my mac but it won't let me access this directory.
If you are trying to execute a script on the Terminal using the Zsh shell and you get permission denied then make sure that the script has the execute permissions. You can do that by using the ls command. Use the chmod command to add execute (x) permissions to the script. Now if I try to run the script again it works!
You need to enable auto_cd
. Add this to your ~/.zshrc
:
setopt auto_cd
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With