Where is OS X's $PATH set?

Posted by thepurplepixel on Super User See other posts from Super User or by thepurplepixel
Published on 2010-05-10T23:22:01Z Indexed on 2010/05/10 23:25 UTC
Read the original article Hit count: 164

Filed under:
|
|
|
|

I have a little $PATH problem: I just reinstalled MacPorts, and my path contains the MacPorts directories as it should at the beginning of $PATH. However, despite me having no such setting in my ~/.bashrc, ~/.bash_profile or ~/.profile, /Library/Frameworks/Python.framework/Versions/2.6/bin is somehow getting appended to the beginning of my $PATH:

0 07:15:11pm ~ $ echo $PATH
/Library/Frameworks/Python.framework/Versions/2.6/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

I'd like to remove it as the MacPorts version of Python is newer. This must be appended after all the above-listed files are read, but I can't think of where. There is no mention of this in /etc/profile, /etc/bashrc or /etc/paths. Any assistance would be greatly appreciated. Thanks!

© Super User or respective owner

Related posts about path

Related posts about bash