Created
October 16, 2023 23:55
-
-
Save catwhocode/591bcf07d9bea93e15e69d03f192170d to your computer and use it in GitHub Desktop.
Export and remove environment variable from .env
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
export $(grep -v '^#' .env | xargs) |
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
unset $(grep -v '^#' .env | sed -E 's/(.*)=.*/\1/' | xargs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment