Sample Header Ad - 728x90

How do I find where an environmental variable got set?

6 votes
2 answers
7453 views
I installed a program to try it out, and decided I didn't like it so I moved the app to the trash. Today, in my shell, I noticed that there are a couple of PROGRAMNAME_BLAHBLAH environmental variables set. I'd like to remove those, too. I don't even have a .bashrc or .bash_login, so I grepped every file I could think of (~/.* ~/Library/* /Library/* /etc/*). The only place these variables turned up was a file ~/.MacOSX/environment.plist, so I removed it from there (Xcode can edit binary plists), but new shells still have these variables set. What other files does Mac OS X 10.7's terminal/bash run on startup? How might these variables get set? Or is it something funny like "need to reboot after editing environment.plist"?
Asked by Ken (4292 rep)
May 20, 2012, 02:11 PM
Last activity: Feb 28, 2023, 11:14 PM