Skip to content

Instantly share code, notes, and snippets.

@adampats
Last active March 17, 2017 16:07
Show Gist options
  • Save adampats/3019ab6107bf1a9229b398c22b55f758 to your computer and use it in GitHub Desktop.
Save adampats/3019ab6107bf1a9229b398c22b55f758 to your computer and use it in GitHub Desktop.
Set environment variables from key/value file
export $(cat config.env | grep -v ^# | xargs)
VAR1=foo
VAR2=bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment