Browse Source

Merge pull request #4492 from arvindch/tweak-pyenv-plugin

Tweak pyenv plugin
Robby Russell 9 years ago
parent
commit
aa15ebad3e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/pyenv/pyenv.plugin.zsh

+ 2 - 1
plugins/pyenv/pyenv.plugin.zsh

@@ -17,7 +17,8 @@ for pyenvdir in "${pyenvdirs[@]}" ; do
         FOUND_PYENV=1
         export PYENV_ROOT=$pyenvdir
         export PATH=${pyenvdir}/bin:$PATH
-        eval "$(pyenv init --no-rehash - zsh)"
+        eval "$(pyenv init - zsh)"
+        eval "$(pyenv virtualenv-init - zsh)"
 
         function pyenv_prompt_info() {
             echo "$(pyenv version-name)"