Add pyenv-virtualenv support
This commit is contained in:
parent
7227c4f0be
commit
3b307f0ecf
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
# Load package manager installed pyenv-virtualenv into the shell session.
|
||||
if (( $+commands[pyenv-virtualenv-init] )); then
|
||||
eval "$(pyenv virtualenv-init -)"
|
||||
fi
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[python] && ! $+commands[pyenv] )); then
|
||||
return 1
|
||||
|
|
Loading…
Add table
Reference in a new issue