.bashrc: Enable pyenv-virtualenv

Needs to be cloned into pyenv's plugins folder, see:

https://github.com/yyuu/pyenv-virtualenv

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2014-10-29 19:04:39 +03:00
parent baaf94e155
commit a664895145
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -48,6 +48,11 @@ if [[ -d ~/.pyenv ]]; then
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# optionally enable pyenv-virtualenv
# See: https://github.com/yyuu/pyenv-virtualenv
if [[ -d ~/.pyenv/plugins/pyenv-virtualenv ]]; then
eval "$(pyenv virtualenv-init -)"
fi
fi
# If a private bin directory exists, add it to PATH