最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

nix - direnv printing environment diff even with `hide_env_diff = true` - Stack Overflow

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论