Skip to content

Instantly share code, notes, and snippets.

@flyudvik
Last active September 24, 2018 06:27
Show Gist options
  • Save flyudvik/bc58ef1bf271e31c5eacea9bbaedd857 to your computer and use it in GitHub Desktop.
Save flyudvik/bc58ef1bf271e31c5eacea9bbaedd857 to your computer and use it in GitHub Desktop.
Load .env file
function loadenv() {
cat .env | while read LINE; do export $LINE || true; done
}
@flyudvik
Copy link
Author

add to the .bashrc and call anywhere loadenv

$ loadenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment