Last active
December 21, 2016 16:23
-
-
Save phedkvist/d53f412d65e4f46955ef193daf1a0f3b to your computer and use it in GitHub Desktop.
How to create environment variable on mac
This file contains 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
Step 1: Open ./bash_profile: | |
open ~/.bash_profile | |
Step 2: Add your variable and save file | |
export MYVARIABLE='valueHere' | |
Step 3: Restart your terminal and check if you env variable exists | |
printenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment