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