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