What is the proper way to modify environment variables like PATH in OS X?
I\'ve looked on Google a little bit and found three different files to edit:
Up to and including OS X v10.7 (Lion) you can set them in:
~/.MacOSX/environment.plist
See:
For PATH in the Terminal, you should be able to set in .bash_profile
or .profile
(you'll probably have to create it though)
For OS X v10.8 (Mountain Lion) and beyond you need to use launchd and launchctl.