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.
This commit is contained in:
Yamashita, Yuu
2015-12-02 23:49:07 +00:00
parent cf7dea411d
commit 6e91d75069
2 changed files with 0 additions and 28 deletions

View File

@@ -130,14 +130,6 @@ if [[ "${VIRTUAL_ENV}" == "${prefix}" ]]; then
fi fi
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 pyenv-sh-deactivate --force --quiet ${VERBOSE+--verbose} || true
echo "pyenv-virtualenv: activate ${venv}" 1>&2 echo "pyenv-virtualenv: activate ${venv}" 1>&2

View File

@@ -81,11 +81,6 @@ EOS
assert_success assert_success
assert_output <<EOS assert_output <<EOS
# Load pyenv-virtualenv automatically by adding
# the following to ~/.bash_profile:
eval "\$(pyenv virtualenv-init -)"
deactivated deactivated
pyenv-virtualenv: activate venv pyenv-virtualenv: activate venv
export PYENV_VERSION="venv"; export PYENV_VERSION="venv";
@@ -138,11 +133,6 @@ EOS
assert_success assert_success
assert_output <<EOS assert_output <<EOS
# Load pyenv-virtualenv automatically by adding
# the following to ~/.config/fish/config.fish:
status --is-interactive; and . (pyenv virtualenv-init -|psub)
deactivated deactivated
pyenv-virtualenv: activate venv pyenv-virtualenv: activate venv
setenv PYENV_VERSION "venv"; setenv PYENV_VERSION "venv";
@@ -194,11 +184,6 @@ EOS
assert_success assert_success
assert_output <<EOS assert_output <<EOS
# Load pyenv-virtualenv automatically by adding
# the following to ~/.bash_profile:
eval "\$(pyenv virtualenv-init -)"
deactivated deactivated
pyenv-virtualenv: activate venv27 pyenv-virtualenv: activate venv27
export PYENV_VERSION="venv27"; export PYENV_VERSION="venv27";
@@ -249,11 +234,6 @@ EOS
assert_success assert_success
assert_output <<EOS assert_output <<EOS
# Load pyenv-virtualenv automatically by adding
# the following to ~/.config/fish/config.fish:
status --is-interactive; and . (pyenv virtualenv-init -|psub)
deactivated deactivated
pyenv-virtualenv: activate venv27 pyenv-virtualenv: activate venv27
setenv PYENV_VERSION "venv27"; setenv PYENV_VERSION "venv27";