Created
July 8, 2015 12:51
-
-
Save mdmartinez/d0d9ce39b1b3624aab77 to your computer and use it in GitHub Desktop.
Set ENV variables OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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