Posts

Showing posts from June 16, 2013

Setting global environment in Mac OS X

I just wanted to quote myself on setting the environment variable in Mac OS X. From, http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x This is stated as, 1) Open a terminal prompt 2) Type  sudo vi /etc/launchd.conf  (note: this file might not yet exist) 3) Put contents like the following into the file # Set environment variables here so they are available globally to all apps # (and Terminal), including those launched via Spotlight. # # After editing this file run the following command from the terminal to update # environment variables globally without needing to reboot. # NOTE: You will still need to restart the relevant application (including # Terminal) to pick up the changes! # grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl # # See http://www.digitaledgesw.com/node/31 # and http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/ # # Note that you must hardcode the paths below, don't u