Merge pull request #4508 from Superbil/master

Fixd bug for pyenv plugin
master
Marc Cornellà 11 years ago
commit 45f0a2800b
  1. 5
      plugins/pyenv/pyenv.plugin.zsh

@ -18,7 +18,10 @@ for pyenvdir in "${pyenvdirs[@]}" ; do
export PYENV_ROOT=$pyenvdir
export PATH=${pyenvdir}/bin:$PATH
eval "$(pyenv init - zsh)"
eval "$(pyenv virtualenv-init - zsh)"
if pyenv commands | command grep -q virtualenv-init; then
eval "$(pyenv virtualenv-init - zsh)"
fi
function pyenv_prompt_info() {
echo "$(pyenv version-name)"

Loading…
Cancel
Save