1
0
Fork 0

Update modules/python/init.zsh

support virtualenvwrapper when installed in bash_completion.d
pull/238/head
James Casbon 12 years ago
parent 2250f93fa3
commit 96753dce0b

@ -25,5 +25,7 @@ fi
# Load virtualenvwrapper into the shell session. # Load virtualenvwrapper into the shell session.
if [[ -n "$WORKON_HOME" ]] && (( $+commands[virtualenvwrapper.sh] )); then if [[ -n "$WORKON_HOME" ]] && (( $+commands[virtualenvwrapper.sh] )); then
source "$commands[virtualenvwrapper.sh]" source "$commands[virtualenvwrapper.sh]"
elif [[ -e "/etc/bash_completion.d/virtualenvwrapper" ]]; then
source "/etc/bash_completion.d/virtualenvwrapper"
fi fi

Loading…
Cancel
Save