alias loadenv='[ -f .env ] && export $(grep -v "^#" .env | xargs) && echo ".env variables have been loaded into the current session." || echo ".env file not found in the current directory."'
Created
October 25, 2024 15:06
-
-
Save muthuishere/a87f8a71a761bf666ddbdc15e0827ff9 to your computer and use it in GitHub Desktop.
Load all the environment variables in the current session mac or linux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment