mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
Merge 5d7894d189 into eda64556af
This commit is contained in:
commit
39145128b3
|
|
@ -112,8 +112,10 @@ EOS
|
|||
;;
|
||||
* )
|
||||
cat <<EOS
|
||||
export PATH="${PYENV_VIRTUALENV_ROOT:-${PYENV_VIRTUALENV_INSTALL_PREFIX}}/shims:\${PATH}";
|
||||
export PYENV_VIRTUALENV_INIT=1;
|
||||
if [[ ":$PATH:" != *"${PYENV_VIRTUALENV_ROOT:-${PYENV_VIRTUALENV_INSTALL_PREFIX}}/shims"* ]]; then
|
||||
export PATH="${PYENV_VIRTUALENV_ROOT:-${PYENV_VIRTUALENV_INSTALL_PREFIX}}/shims:\${PATH}";
|
||||
export PYENV_VIRTUALENV_INIT=1;
|
||||
fi
|
||||
EOS
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -46,8 +46,10 @@ load test_helper
|
|||
run pyenv-virtualenv-init - bash
|
||||
assert_success
|
||||
assert_output <<EOS
|
||||
export PATH="${TMP}/pyenv/plugins/pyenv-virtualenv/shims:\${PATH}";
|
||||
export PYENV_VIRTUALENV_INIT=1;
|
||||
if [[ ":$PATH:" != *"${TMP}/pyenv/plugins/pyenv-virtualenv/shims"* ]]; then
|
||||
export PATH="${TMP}/pyenv/plugins/pyenv-virtualenv/shims:\${PATH}";
|
||||
export PYENV_VIRTUALENV_INIT=1;
|
||||
fi
|
||||
_pyenv_virtualenv_hook() {
|
||||
local ret=\$?
|
||||
if [ "\${PYENV_VERSION-}" = "\${_PYENV_VH_VERSION-}" ] \\
|
||||
|
|
@ -156,8 +158,10 @@ EOS
|
|||
run pyenv-virtualenv-init - zsh
|
||||
assert_success
|
||||
assert_output <<EOS
|
||||
export PATH="${TMP}/pyenv/plugins/pyenv-virtualenv/shims:\${PATH}";
|
||||
export PYENV_VIRTUALENV_INIT=1;
|
||||
if [[ ":$PATH:" != *"${TMP}/pyenv/plugins/pyenv-virtualenv/shims"* ]]; then
|
||||
export PATH="${TMP}/pyenv/plugins/pyenv-virtualenv/shims:\${PATH}";
|
||||
export PYENV_VIRTUALENV_INIT=1;
|
||||
fi
|
||||
_pyenv_virtualenv_hook() {
|
||||
local ret=\$?
|
||||
if [ "\${PYENV_VERSION-}" = "\${_PYENV_VH_VERSION-}" ] \\
|
||||
|
|
|
|||
Loading…
Reference in a new issue