Skip to content

Instantly share code, notes, and snippets.

@rasgo-cc
Created May 10, 2019 10:00
Show Gist options
  • Save rasgo-cc/3ed6516e6693c1d5fa94b1c20b722327 to your computer and use it in GitHub Desktop.
Save rasgo-cc/3ed6516e6693c1d5fa94b1c20b722327 to your computer and use it in GitHub Desktop.
Export variables in a dotenv file (bash)
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