Mac OS X: set PATH for non-terminal applications using User Session Environment Variables in ~/.MacOSX/environment.plist








  • Read the PATH variable from ~/.MacOSX/environment.plist
    defaults read ~/.MacOSX/environment.plist PATH
  • Append to the PATH variable in ~/.MacOSX/environment.plist
    defaults write ~/.MacOSX/environment.plist PATH $(defaults read ~/.MacOSX/environment.plist PATH):/usr/local/git/bin

see also




No comments:

Post a Comment