1
0
Fork 0

Add support for pyenv-virtualenv

pull/988/head
monai 9 years ago
parent f2a826e963
commit 56a2e950e3

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

Loading…
Cancel
Save