Update modules/python/init.zsh

support virtualenvwrapper when installed in bash_completion.d
This commit is contained in:
James Casbon 2012-08-16 12:50:01 +02:00
parent 2250f93fa3
commit 96753dce0b

View file

@ -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