-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation on .env files and load_dotenv is still confusing #965
Comments
I wrote "still" because I saw there was an issue before #941 |
The best is to write |
@zimbatm Sure, but as long as the feature is there it should be documented properly, potentially saying don't do it? |
I was also confused by the documentation. If you have a .env in your directory with no accompanying .envrc, you need If you have both .env and .envrc, direnv will ignore the .env despite having That's my own experience with version 2.32.2 |
Please add which version of direnv added support for |
Describe the bug
I am new to
direnv
, so correct me if I am wrong, but from what I tried (using the latest binary on Mac) and if I understand it correctly, you can either have a.envrc
OR an.env
loaded automatically bydirenv
. For the latter to work you need to setload_dotenv
to true. But the documentation makes it sound like both are loaded:This should probably read:
And this:
should probably read:
This seems out of place:
It would probably be good to have an extra section just explaining the precedence of
.envrc
and.env
and how things work when there is something in the current and in parent directories. I'd create a PR, but I am not sure how the latter works.The text was updated successfully, but these errors were encountered: