Created
May 10, 2019 10:00
-
-
Save rasgo-cc/3ed6516e6693c1d5fa94b1c20b722327 to your computer and use it in GitHub Desktop.
Export variables in a dotenv file (bash)
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 dotenv() { | |
file=${1-".env"} | |
set -a; source $file; set +a | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment