mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-12 13:33:52 -05:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user