From 6e91d750694c6afae77769e2e2843ed0797a8f0c Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Wed, 2 Dec 2015 23:49:07 +0000 Subject: [PATCH] Stop showing message about `pyenv virtualenv-init` on activate (#122) `pyenv virtualenv-init` is just an option. Always showing message about it would be too much to do. --- bin/pyenv-sh-activate | 8 -------- test/activate.bats | 20 -------------------- 2 files changed, 28 deletions(-) diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index 6f8e90c..3ceadb6 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -130,14 +130,6 @@ if [[ "${VIRTUAL_ENV}" == "${prefix}" ]]; then fi fi -# Display setup instruction, if pyenv-virtualenv has not been initialized. -# if 'pyenv virtualenv-init -' is not found in "$profile" -if [ -z "$PYENV_VIRTUALENV_INIT" ]; then - if [ -z "${QUIET}" ]; then - pyenv-virtualenv-init >&2 || true - fi -fi - pyenv-sh-deactivate --force --quiet ${VERBOSE+--verbose} || true echo "pyenv-virtualenv: activate ${venv}" 1>&2 diff --git a/test/activate.bats b/test/activate.bats index e249178..ad5e64b 100644 --- a/test/activate.bats +++ b/test/activate.bats @@ -81,11 +81,6 @@ EOS assert_success assert_output <