Tuesday, December 20, 2022

How to a add a local directory to $PATH in macOS

To add a custom directory to $PATH in macOS, for example to place binary exec files or links:

mkdir ~/zshbin
echo 'export PATH=~/zshbin:$PATH' >> .zshrc

It will also work with bash automatically.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.