-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support load .env into the current shell #19
Comments
It sort of is. It's technically not the current shell environment but you could spawn a new shell using the tool. For example
This will open bash inside your current shell with the new environment variables applied. Similarly you could replace npx node-env-run -e $SHELL This would run a new shell with whatever you are already as your current shell. Note This will spawn a new shell inside your shell. So it will look like you just successfully executed a command but in reality you are inside a shell inside your shell. Meaning once you are done with your work you should consider running |
Also if you just want to load in the |
You are right, I find it it difficult to change environment variables of parent process from the child process. The quick method for this maybe create a sub shell process. Also |
I want to load
.env
into the current shell environment, does it support this feature?The text was updated successfully, but these errors were encountered: