Skip to content
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

Cannot find any direnv.toml config file #1241

Open
bolinocroustibat opened this issue Feb 22, 2024 · 5 comments
Open

Cannot find any direnv.toml config file #1241

bolinocroustibat opened this issue Feb 22, 2024 · 5 comments
Labels

Comments

@bolinocroustibat
Copy link

bolinocroustibat commented Feb 22, 2024

On some machines (several Debian 12 VMs, and on an Android 14 device with Termux), after installing direnv with apt/apt-get, I cannot find any direnv.toml config file. I've been looking in ~/.config/direnv/direnv.toml and I tried to check with the content of $XDG_CONFIG_HOME (which is empty).

Where should I look for the direnv.toml config file after install, if not in ~/.config/direnv/direnv.toml?

@moyarich
Copy link

moyarich commented Mar 1, 2024

you have to create it:

mkdir -p $HOME/.config/direnv
touch $HOME/.config/direnv/direnv.toml

Then manually add TOML settings to your direnv.toml file

For example

[global]
load_dotenv = true

@bolinocroustibat
Copy link
Author

Thanks, after posting the issue I just realized we might have to create it. It should be great to be more clear in the doc about that.

@bolinocroustibat
Copy link
Author

We can change the label from bug to documentation and I can rewrite the issue if needed

@zimbatm
Copy link
Member

zimbatm commented Mar 4, 2024

Do you have a sense of where in the documentation this should be added?

@bolinocroustibat
Copy link
Author

It could be at the very top of https://direnv.net/man/direnv.toml.1.html#codeloaddotenvcode, saying the config file is not created by default and should be created be created by the user. Does that make sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants