mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
Compare commits
2 Commits
a54ddef566
...
abaeb2af6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abaeb2af6c | ||
|
|
5d7894d189 |
@@ -95,8 +95,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
|
||||
|
||||
@@ -50,8 +50,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 [ -n "\${VIRTUAL_ENV-}" ]; then
|
||||
@@ -93,8 +95,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 [ -n "\${VIRTUAL_ENV-}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user