diff --git a/modules/python/init.zsh b/modules/python/init.zsh index c0579be8..fc3da6f9 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -21,8 +21,6 @@ else fi # source virtualenvwrapper if available -if [[ -n "$WORKON_HOME" ]]; then - if (( $+commands[virtualenvwrapper.sh] )); then - source virtualenvwrapper.sh - fi +if [[ -n "$WORKON_HOME" ]] && (( $+commands[virtualenvwrapper.sh] )); then + source virtualenvwrapper.sh fi