Add pyenv plugin

pull/302/head
Manoj 2014-06-15 03:17:50 +05:30
parent ad5f6b36bf
commit 073d75532e
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
cite about-plugin
about-plugin 'load pyenv, if you are using it'
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
[[ `which pyenv` ]] && eval "$(pyenv init -)"
#Load pyenv virtualenv if the virtualenv plugin is installed.
if pyenv virtualenv-init - &> /dev/null; then
eval "$(pyenv virtualenv-init -)"
fi
# Load the auto-completion script if pyenv was loaded.
[[ -e $PYENV_ROOT/completions/pyenv.bash ]] && source $PYENV_ROOT/completions/pyenv.bash