add brew to path macos code example Example: how to add opt/homebrew/bin to the PATH m1 macbook echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc