From 2993a793609fa6e650e8222abc14e923a463400e Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Fri, 12 Jun 2015 17:14:06 -0700 Subject: [PATCH] Add pyenv-virtualenv support to pyenv plugin. --- plugins/pyenv/pyenv.plugin.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh index aa1f9488..196e49ee 100644 --- a/plugins/pyenv/pyenv.plugin.zsh +++ b/plugins/pyenv/pyenv.plugin.zsh @@ -23,6 +23,10 @@ for pyenvdir in "${pyenvdirs[@]}" ; do eval "$(pyenv virtualenv-init - zsh)" fi + if [[ -d $pyenvdir/plugins/pyenv-virtualenv ]] ; then + eval "$(pyenv virtualenv-init -)" + fi + function pyenv_prompt_info() { echo "$(pyenv version-name)" }