From 8a95cedc3b200762f44d1c4e9475240f0d61c8a1 Mon Sep 17 00:00:00 2001 From: Arvind Chembarpu Date: Thu, 15 Oct 2015 08:43:40 +0530 Subject: [PATCH 1/2] Init pyenv virtualenvs too --- plugins/pyenv/pyenv.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh index b3dc7aa17..706aad3cf 100644 --- a/plugins/pyenv/pyenv.plugin.zsh +++ b/plugins/pyenv/pyenv.plugin.zsh @@ -18,6 +18,7 @@ for pyenvdir in "${pyenvdirs[@]}" ; do export PYENV_ROOT=$pyenvdir export PATH=${pyenvdir}/bin:$PATH eval "$(pyenv init --no-rehash - zsh)" + eval "$(pyenv virtualenv-init - zsh)" function pyenv_prompt_info() { echo "$(pyenv version-name)" From 8a362b2b1f00448af6dd2ef1a6b0d5ea2d9b025e Mon Sep 17 00:00:00 2001 From: Arvind Chembarpu Date: Thu, 15 Oct 2015 08:44:15 +0530 Subject: [PATCH 2/2] Enable pyenv rehash --- plugins/pyenv/pyenv.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh index 706aad3cf..b06507b62 100644 --- a/plugins/pyenv/pyenv.plugin.zsh +++ b/plugins/pyenv/pyenv.plugin.zsh @@ -17,7 +17,7 @@ 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() {