Mac OS X keeps "old" environment variable around
- by Xymak1y
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?