Skip to content
ohsudo, Home

Tags

#zsh

zsh: permission denied
macOS

"zsh: permission denied" when running a script: the execute bit, and other causes

Fix "zsh: permission denied" on macOS or Linux: add the execute bit with chmod +x, check the path is a file and not a folder, and spot noexec mounts and missing rights.

Beginner · 3 min read

command not found: brew
macOS

macOS "zsh: command not found: brew": add Homebrew to your PATH

Fix "zsh: command not found: brew" on macOS: Homebrew lives in /opt/homebrew on Apple silicon. Add brew shellenv to .zprofile, or install it if it isn't there.

Beginner · 4 min read