From 96753dce0b9fb9a63f4b65f82c2655b3f3043eb3 Mon Sep 17 00:00:00 2001 From: James Casbon Date: Thu, 16 Aug 2012 12:50:01 +0200 Subject: [PATCH] Update modules/python/init.zsh support virtualenvwrapper when installed in bash_completion.d --- modules/python/init.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index 485f99dd..50a1f61f 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -25,5 +25,7 @@ fi # Load virtualenvwrapper into the shell session. if [[ -n "$WORKON_HOME" ]] && (( $+commands[virtualenvwrapper.sh] )); then source "$commands[virtualenvwrapper.sh]" +elif [[ -e "/etc/bash_completion.d/virtualenvwrapper" ]]; then + source "/etc/bash_completion.d/virtualenvwrapper" fi