mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 15:26:23 -04:00
Repaired virtualenv activation and deactivation for the fish shell
This commit is contained in:
parent
3f5171e2fc
commit
f7da0c5808
|
|
@ -41,7 +41,7 @@ fi
|
|||
|
||||
pyenv-virtualenv-prefix "${versions}" 1>/dev/null
|
||||
|
||||
echo "pyenv shell \"${versions}\""
|
||||
echo "pyenv shell \"${versions}\";"
|
||||
case "$shell" in
|
||||
fish ) echo ". \"$(pyenv-prefix "${versions}")/bin/activate.fish\"" ;;
|
||||
* ) echo "source \"$(pyenv-prefix "${versions}")/bin/activate\"" ;;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ set -e
|
|||
|
||||
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
|
||||
case "$shell" in
|
||||
fish ) echo "functions -q deactivate; and deactivate";;
|
||||
fish ) echo "functions -q deactivate; and deactivate;";;
|
||||
* ) echo "declare -f deactivate 1>/dev/null 2>&1 && deactivate";;
|
||||
esac
|
||||
echo "pyenv shell --unset"
|
||||
|
|
|
|||
Loading…
Reference in a new issue