Where does $PATH get set in OS X 10.6 Snow Leopard?
Posted
by
Andrew
on Super User
See other posts from Super User
or by Andrew
Published on 2009-11-11T18:48:39Z
Indexed on
2012/06/26
3:19 UTC
Read the original article
Hit count: 477
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