Skip to content

Instantly share code, notes, and snippets.

@vintagefuture
Forked from mihow/load_dotenv.sh
Created February 6, 2023 20:12
Show Gist options
  • Save vintagefuture/7e8adfe0e0bf2471bdc3d30aab65a130 to your computer and use it in GitHub Desktop.
Save vintagefuture/7e8adfe0e0bf2471bdc3d30aab65a130 to your computer and use it in GitHub Desktop.
Load environment variables from dotenv / .env file in Bash
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment