Skip to content
Two columns comparing a PATH before and after macOS path_helper runs: on the left, /opt/homebrew/bin set in ~/.zprofile sits at position 1 above /usr/bin and /bin; on the right, after /etc/zprofile runs path_helper, /opt/homebrew/bin has moved to position 14, below /usr/bin and /bin.

How to Add to PATH on macOS

Adding a directory to your PATH is how you get macOS to find a command by name instead of typing its full location every time. There’s more than one way to do it, and which…