Last active
September 24, 2018 06:27
-
-
Save flyudvik/bc58ef1bf271e31c5eacea9bbaedd857 to your computer and use it in GitHub Desktop.
Load .env file
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
function loadenv() { | |
cat .env | while read LINE; do export $LINE || true; done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add to the .bashrc and call anywhere loadenv
$ loadenv