-
Notifications
You must be signed in to change notification settings - Fork 626
Quiet or Silence direnv
Benjamin Esham edited this page Oct 23, 2023
·
2 revisions
By default, direnv
will output messages every time it enters and leaves a directory with a .envrc
file in it. To make direnv
quiet down and not output these messages, you can set the DIRENV_LOG_FORMAT
environment variable to an empty string, like this:
# make `direnv` silent
export DIRENV_LOG_FORMAT=
Alternatively, you can tell direnv to display these messages in a “faint” color:
export DIRENV_LOG_FORMAT=$'\033[2mdirenv: %s\033[0m'
See this blog post for more details on this approach.