Created
September 8, 2022 09:43
-
-
Save withakay/abf9294f54ca0328977bd03444fb6a2a to your computer and use it in GitHub Desktop.
Source from .env (dotenv) 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
# if you want to export a .env file | |
# with a list of key values like | |
# | |
# `FOO=BAR` | |
# | |
# without prefixing them with `export` e.g. | |
# | |
# `export FOO=BAR` | |
# | |
# Do the following: | |
set -o allexport | |
source .env | |
set +o allexport |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment