Skip to content

Instantly share code, notes, and snippets.

@esebastian
Last active August 29, 2015 14:04
Show Gist options
  • Save esebastian/9be9f65dd636872470b0 to your computer and use it in GitHub Desktop.
Save esebastian/9be9f65dd636872470b0 to your computer and use it in GitHub Desktop.
Load environment variables from '.env' into the current shell session
# execute on the prompt or define it as a shell function
for i in `cat .env`; do
export $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment