Add support for pyenv-virtualenv
This commit is contained in:
parent
f2a826e963
commit
56a2e950e3
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue