From 3b307f0ecfc85174d819902d7a491cae2d0a6982 Mon Sep 17 00:00:00 2001 From: Robson Roberto Souza Peixoto Date: Tue, 2 Feb 2016 11:53:53 -0300 Subject: [PATCH] Add pyenv-virtualenv support --- modules/python/init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index da78ea79..1ed72092 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -29,6 +29,11 @@ else fi fi +# Load package manager installed pyenv-virtualenv into the shell session. +if (( $+commands[pyenv-virtualenv-init] )); then + eval "$(pyenv virtualenv-init -)" +fi + # Return if requirements are not found. if (( ! $+commands[python] && ! $+commands[pyenv] )); then return 1