Ability to stop prompting about direnv allow for a directory
Is your feature request related to a problem? Please describe.
If I have a .envrc file that I want to always ignore, as far as I can tell there is no way to prevent getting message saying something like:
direnv: error $DIR is blocked. Run
direnv allowto approve its content
every time I enter the directory.
Describe the solution you'd like
One of the following:
- Add a
direnv ignorecommand that will remember that I don't want to use the envrc in the directory, and stop prompting about it - Add a configuration that would make it so direnv remembers if it has already given a prompt for a folder, and if it has, don't prompt for it again.
Describe alternatives you've considered
I could add a 2> /dev/null to the direnv command in my shell integration to silence this error. But that would apply to all directories, and would also silence any other errors (such as if there was an error in loading an allowed .envrc).
Additional context This is very similar to #259. However, from what I can tell, that was closed because a bug was fixed where it prompted for every command. However, I want to prevent it entirely, even if you cd into the directory.
Source: direnv/direnv