Restoring your PATH on MacOS

The inevitable happened and while adding/removing some utils to my path, I messed up my .bash_profile and ended up with a PATH where I couldn’t run any commands.

To recover, the default PATH on MacOS should be:

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

From here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.