Where does $PATH get set in OS X 10.6 Snow Leopard?

Posted by misbehavens on Super User See other posts from Super User or by misbehavens
Published on 2009-11-11T18:48:39Z Indexed on 2010/06/15 16:53 UTC
Read the original article Hit count: 361

Filed under:
|
|
|
|

I type echo $PATH on the command line and get

/opt/local/bin:/opt/local/sbin:/Users/andrew/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/pear/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin

I'm wondering where this is getting set since my .bash_login file is empty.

I'm particularly concerned that, after installing MacPorts, it installed a bunch of junk in /opt. I don't think that directory even exists in a normal Mac OS X install.

Update: Thanks to jtimberman for correcting my echo $PATH statement

© Super User or respective owner

Related posts about osx

Related posts about command-line