Mac OS X keeps "old" environment variable around
Posted
by
Xymak1y
on Super User
See other posts from Super User
or by Xymak1y
Published on 2013-11-06T17:21:27Z
Indexed on
2013/11/07
10:00 UTC
Read the original article
Hit count: 173
So far I had /Applications/play-1.2.5/
added to my $PATH variable. Now I'm working with 2.2.1, which I installed in /Applications/play-2.2.1
and changed in ~/.bash_profile
(which is getting sourced at startup). However, when printing $PATH, 1.2.5 is somehow still around:
mbp:~ user$ echo $PATH
/usr/local/share/npm/bin:/Applications/play-2.2.1:/usr/local/heroku/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/play-1.2.5:/Applications/XAMPP/xamppfiles/bin/:/opt/X11/bin
As far as I now, I only entered $PATH variables in .bash_profile
, which looks like this:
mbp:~ user$ cat .bash_profile
source ~/.git-completion.bash
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
### Play Framework
export PATH="/Applications/play-2.2.1:$PATH"
export PATH="/usr/local/share/npm/bin:$PATH"
I'm also not sure where the XAMPP extension to the variable comes from. Can I see somewhere which other files are being sourced on startup?
© Super User or respective owner