Last active
May 22, 2019 22:59
-
-
Save fuzzyweapon/02cff3f0fb95ad0e2de17b6285c39531 to your computer and use it in GitHub Desktop.
Load a .env file - environment variable flat files
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
set -a; . conf-file; set +a |
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
# Load up .env | |
set -o allexport | |
[[ -f .env ]] && source .env | |
set +o allexport |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment