shaver
shaver

Reputation: 157

direnv printing environment diff even with `hide_env_diff = true`

I am using direnv 2.35.0 (and nix-direnv 3.0.6, though the behaviour happens even without use nix or use flake) and direnv insists on printing the environment diff even though I have hide_env_diff = true in my .config/direnv/direnv.toml configuration file.

Here's an example transcript in case it's helpful:

shaver on stebe ~ 
❯ cd -
~/tmp
direnv: loading ~/tmp/.envrc
direnv: export +SLAM

shaver on stebe ~/tmp 
❯ cat .envrc             
export SLAM=bam

shaver on stebe ~/tmp 
❯ cat ~/.config/direnv/direnv.toml 
[global]
hide_env_diff = true

How can I properly suppress the printing of the environment diff? When moving into some use flake directories the list is pretty long and annoying.

Upvotes: 0

Views: 58

Answers (1)

StepBroBD
StepBroBD

Reputation: 48

Try setting log_format or DIRENV_LOG_FORMAT environment variable to an empty string

Upvotes: 1

Related Questions