Where does OS X store environment variables?
In Linux, I kept environment variables in .bash and .bash_profile files in my home directory. What is the default file Mac OSX uses to store all this information? So, for instance if I do
$env
I get information about my environment such as:
PATH=/usr/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/ usr/X11/bin
...
USER=josepmfontana
...
HOME=/Volumes/DATA
The problem comes when I try to modify this information. I even did a grep:
Josep-M-Fontanas-iMac:~ josepmfontana$ grep -r USER=josepmfontana ~/.*
But I only found this string in .bash_history
Actually, I found another unexpected problem. grep stalled with the following error message:
grep: warning: /Volumes/DATA/../Macintosh HD/Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/Res ources: recursive directory loop
I've checked a few manuals, I've Googled for default environment variables Mac OS X but I'm stumped.
Any help I can get from the community will be greatly appreciated.
Josep M.
iMac 27" Core i7, Mac OS X (10.6.4)