patti_jane patti_jane - 1 year ago 66
Bash Question

Setting PATH environmental variables in OSX permanently

I have read several answers on how to set environmental variables on OSX as permenantly,

First, I tried this, How to permanently set $PATH on Linux? but I had an error message saying

no such file and directory
, so I thought I could try
instead of
but it did not work.

Second, I found this solution How to set the $PATH as used by applications in os x , which advices to make changes in


but again I had
no such file and directory

I need a way to set these variables such that it won't require to set them again and again each time I open a new terminal session.

Answer Source

You have to add it to /etc/paths.

Reference (which works for me) : Here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download