Tuesday 8 March 2011

OSX environment variables

Where are those pesky things kept - as usual Apple like to keep us guessing....Whilst the folks at Stackoverflow provide answers:
  • ~/.profile, ~/.bashrc, (~/.cshrc, ~/.tcshrc) - depending on what shell you're running
  • ~/.MacOSX/environment.plist - More for GUI stuff
  • /etc/launchd.conf - used globally by launchd (can be set per process using launchctl setenv)
  • /etc/paths - just for setting the PATH

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Sure - though that'll only persist for that Terminal session. The posting is about configuring persistent environment variables across sessions.

    ReplyDelete