Run `pyenv virtualenvwrapper` and remove virtualenv-init cmd

pull/341/head
Luke Culbertson 2014-10-02 00:16:39 -07:00
parent 7240a65706
commit 228ac4ceec
2 changed files with 2 additions and 5 deletions

View File

@ -5,6 +5,8 @@ about-plugin 'pyenv-virtualenvwrapper helper functions'
export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"
[[ `which pyenv` ]] && eval "$(pyenv virtualenv)"
# Activate autoenv
source /usr/local/opt/autoenv/activate.sh

View File

@ -6,10 +6,5 @@ export PATH="$PYENV_PATH:$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