Make direnv less verbose
This commit is contained in:
parent
7591943464
commit
ce3bc5479b
1 changed files with 4 additions and 0 deletions
|
@ -297,8 +297,12 @@ environment is _completely isolated_ and won't pollute your system.
|
|||
echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
|
||||
|
||||
# Enable nix-direnv (if installed in the previous step)
|
||||
mkdir -p ~/.config/direnv
|
||||
echo 'source $HOME/.nix-profile/share/nix-direnv/direnvrc' >> ~/.config/direnv/direnvrc
|
||||
|
||||
# Optional: make direnv less verbose
|
||||
echo '[global]\nwarn_timeout = "2m"\nhide_env_diff = true' >> ~/.config/direnv/direnv.toml
|
||||
|
||||
# Source the bashrc to activate the hook (or start a new shell)
|
||||
source ~/.bashrc
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue