Skip to content

Instantly share code, notes, and snippets.

@phedkvist
Last active December 21, 2016 16:23
Show Gist options
  • Save phedkvist/d53f412d65e4f46955ef193daf1a0f3b to your computer and use it in GitHub Desktop.
Save phedkvist/d53f412d65e4f46955ef193daf1a0f3b to your computer and use it in GitHub Desktop.
How to create environment variable on mac
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