activate: invoke pyenv shell only if the arguments passed

This commit is contained in:
Yamashita Yuu
2014-06-02 20:16:14 +09:00
parent ea120da0c5
commit 8a837758dc
5 changed files with 11 additions and 26 deletions

View File

@@ -11,7 +11,6 @@ set -e
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
case "$shell" in
fish ) echo "functions -q deactivate; and deactivate;";;
* ) echo "declare -f deactivate 1>/dev/null 2>&1 && deactivate;";;
fish ) echo "functions -q deactivate; and deactivate";;
* ) echo "declare -f deactivate 1>/dev/null 2>&1 && deactivate";;
esac
echo "pyenv shell --unset"