add support for pyenv-virtualenv

This commit is contained in:
Sean Zeng 2015-01-15 01:32:43 -08:00
parent d43bcb9720
commit d15edd0577

View file

@ -45,6 +45,14 @@ if (( $+commands[virtualenvwrapper.sh] )); then
source "$commands[virtualenvwrapper.sh]"
fi
# Load pyenv-virtualenv into the shell session.
if (( $+commands[pyenv-virtualenv-init] )); then
# Disable the virtualenv prompt.
VIRTUAL_ENV_DISABLE_PROMPT=1
eval "$(pyenv virtualenv-init -)";
fi
#
# Aliases
#