css (1) jQuery (7) linux (38) mac (70) php (29) python (1) svn/git (9) trac (4) ubuntu (1) virtualbox (6) vista (2) windows (14)

Saturday, 5 February 2011

Changing the OSX Path variable globally

Changing the PATH variable globally on OSX isn't the same as Linux, it's stored in a few places, firstly you have /etc/paths which contain each path one per line, and then you have /etc/paths.d

OSX reads the /etc/paths first then everything in /etc/paths.d so all paths are appended to the variable, in my case I want /usr/local/bin searched first, to do this edit /etc/paths and move the bottom line to the top problem solved!