From bb32bbfc09837802593ce6dcc14714693e64bd64 Mon Sep 17 00:00:00 2001 From: timfeirg Date: Tue, 29 May 2018 13:09:12 +0800 Subject: [PATCH] remove unnecessary warning from virtualenvwrapper.plugin.zsh reason being: * if virtualenvwrapper.sh is being used, $WORKON_HOME will be immediately (to the default value), no need for this warning * if virtualenvwrapper_lazy.sh is being used, $WORKON_HOME will be set (to the default value) later, automatically * if none of the initialization scripts are available, for example if virtualenvwrapper was uninstalled, the installation command will be printed during zsh start --- .gitignore | 2 ++ plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index b2022081a..f298a4cf4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ custom/ # temp files directories cache/ log/ + +.DS_Store diff --git a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh index 2a7c0b92a..a47d61a6e 100644 --- a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh +++ b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh @@ -39,11 +39,6 @@ if ! type workon &>/dev/null; then return fi -if [[ "$WORKON_HOME" == "" ]]; then - print "[oh-my-zsh] \$WORKON_HOME is not defined so plugin virtualenvwrapper will not work" >&2 - return -fi - if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then # Automatically activate Git projects or other customized virtualenvwrapper projects based on the # directory name of the project. Virtual environment name can be overridden