diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index be76525..8beb631 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -138,7 +138,9 @@ fi pyenv-sh-deactivate --force --quiet ${VERBOSE+--verbose} || true -echo "pyenv-virtualenv: activate ${venv}" 1>&2 +if [ -n "$PYENV_VIRTUALENV_VERBOSE_ACTIVATE" ]; then + echo "pyenv-virtualenv: activate ${venv}" 1>&2 +fi if [ -z "$no_shell" ]; then # shell version set in pyenv-sh-activate should be unset diff --git a/bin/pyenv-sh-deactivate b/bin/pyenv-sh-deactivate index 7450d50..2e4d712 100755 --- a/bin/pyenv-sh-deactivate +++ b/bin/pyenv-sh-deactivate @@ -58,7 +58,9 @@ else venv="${prefix##*/}" fi -echo "pyenv-virtualenv: deactivate ${venv}" 1>&2 +if [ -n "$PYENV_VIRTUALENV_VERBOSE_ACTIVATE" ]; then + echo "pyenv-virtualenv: deactivate ${venv}" 1>&2 +fi if [ -n "${PYENV_ACTIVATE_SHELL}" ]; then # shell version set in pyenv-sh-activate should be unset