osx how to add to your path

export PATH=$PATH:/usr/local/bin

this adds /usr/local/bin to my path until the end of the current bash session, still figuring out how to make it permanent

update: from tim at twisty.com:-
—–
to make it permanent add the line to a file called ‘.profile’ in your home directory. (if ‘.profile’ doesn’t exist, you’ll need to create it!)

# Update path
PATH=$PATH:~/Applications:/usr/local/bin;
export PATH

Leave a Reply