Skip to content

Instantly share code, notes, and snippets.

@vampireneo
Last active April 1, 2016 17:23
Show Gist options
  • Save vampireneo/018b40ca42710b6b1ec422a0b1f41854 to your computer and use it in GitHub Desktop.
Save vampireneo/018b40ca42710b6b1ec422a0b1f41854 to your computer and use it in GitHub Desktop.
How to set an environment variable in Mac?

#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment