Suppress activate/deactivate messages by default

This commit is contained in:
puhitaku
2016-04-08 15:45:26 +09:00
parent 23f7027ce4
commit f627609419
2 changed files with 6 additions and 2 deletions

View File

@@ -138,7 +138,9 @@ fi
pyenv-sh-deactivate --force --quiet ${VERBOSE+--verbose} || true 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 if [ -z "$no_shell" ]; then
# shell version set in pyenv-sh-activate should be unset # shell version set in pyenv-sh-activate should be unset

View File

@@ -58,7 +58,9 @@ else
venv="${prefix##*/}" venv="${prefix##*/}"
fi 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 if [ -n "${PYENV_ACTIVATE_SHELL}" ]; then
# shell version set in pyenv-sh-activate should be unset # shell version set in pyenv-sh-activate should be unset