Skip to content

Instantly share code, notes, and snippets.

@mdmartinez
Created July 8, 2015 12:51
Show Gist options
  • Select an option

  • Save mdmartinez/d0d9ce39b1b3624aab77 to your computer and use it in GitHub Desktop.

Select an option

Save mdmartinez/d0d9ce39b1b3624aab77 to your computer and use it in GitHub Desktop.
Set ENV variables OSX
Locally
export variable=value
Globally
To set an environment variable, enter the following command:
launchctl setenv variable "value"
To find out if an environment variable is set, use the following command:
launchctl getenv variable
To clear an environment variable, use the following command:
launchctl unsetenv variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment