Mac OS X Environment Variables
Most of the time, Mac OS X programs do not use environment variables like the “PATH”. However, sometimes I use tools that require such Variables. Contrary to well known places to put this kind of information in a Unix Environment (like /etc/profile, /etc/bashrc, ~/.profile, or ~/.bashrc files) the recommended way of doing this is the following:
- Add the following File to your User Directory, if it does not already exist:
~/.MacOSX/environment.plist - Open it with some Text Editor and add the following XML Code
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"> <dict/> </plist> - Open the File in the Finder and add beneath “Root” an Environment Variable with the Mac OSX Plist Editor.
- Log off and on again.
- Enjoy.



The URL to TrackBack this entry is: http://developing.schimak.at/2009/08/mac-osx-environment-variables/trackback/