Add support for pyenv-virtualenv

This commit is contained in:
monai 2015-10-09 17:17:20 +03:00
parent f2a826e963
commit 56a2e950e3

View file

@ -34,17 +34,22 @@ if (( ! $+commands[python] && ! $+commands[pyenv] )); then
return 1
fi
# Load pyenv-virtualenv into the shell session.
if (( $+commands[pyenv-virtualenv] )); then
eval "$(pyenv virtualenv-init -)"
fi
# Load virtualenvwrapper into the shell session.
if (( $+commands[virtualenvwrapper.sh] )); then
# Set the directory where virtual environments are stored.
export WORKON_HOME="$HOME/.virtualenvs"
# Disable the virtualenv prompt.
VIRTUAL_ENV_DISABLE_PROMPT=1
source "$commands[virtualenvwrapper.sh]"
fi
# Disable the virtualenv prompt.
VIRTUAL_ENV_DISABLE_PROMPT=1
#
# Aliases
#