From 2794f95d3eb7d5b65be56710d9d9e9ac9d642ff8 Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Tue, 2 May 2017 10:08:01 -0700 Subject: [PATCH] Use the lazy-loaded version of virtualenvwrapper if available This shouldn't cause problems for anyone and should improve startup times for anyone using python with virtualenvwrapper because it will wait for the first command to load rather than right away. --- modules/python/init.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index e40bca6..4f67a08 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -46,6 +46,8 @@ if zstyle -T ':prezto:module:python' skip-virtualenvwrapper-init; then pyenv virtualenvwrapper elif (( $+commands[pyenv-virtualenv-init] )); then eval "$(pyenv virtualenv-init -)" + elif (( $+commands[virtualenvwrapper_lazy.sh] )); then + source "$commands[virtualenvwrapper_lazy.sh]" elif (( $+commands[virtualenvwrapper.sh] )); then source "$commands[virtualenvwrapper.sh]" fi