From 48146928b25c5c150c4bb59bbbc135395c9ef4b1 Mon Sep 17 00:00:00 2001 From: Urban Skudnik Date: Wed, 30 Oct 2013 13:33:34 +0100 Subject: [PATCH] Fixed checking of whether virtualenvwrapper exists --- plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh index 670c287bd..174768b5e 100644 --- a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh +++ b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh @@ -1,5 +1,5 @@ virtualenvwrapper='virtualenvwrapper_lazy.sh' -if (( $+commands[$virtualenvwrapper] )); then +if [[ -f `which $virtualenvwrapper` ]]; then source ${${virtualenvwrapper}:c} if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then