#For OS X 10.8, 10.9, 10.10 To set an environment variable: launchctl setenv variable "value" To view an environment variable: launchctl getenv variable To clear an environment variable: launchctl unsetenv variable