Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Dotenv, if it is a Unix utility. Parent comment
source <(cat .env | xargs)
export $(cat .env | xargs)
unset $(cat .env | cut -d= -f1)
The last one unsets the environment variables that were set by the first command, ensuring they are not persisted beyond the current shell session.
If you are worried about forgetting to execute it, there are a couple of ways to work around it, depending on your case.
There are no comments on this comment yet.
The last one unsets the environment variables that were set by the first command, ensuring they are not persisted beyond the current shell session.
If you are worried about forgetting to execute it, there are a couple of ways to work around it, depending on your case.