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
This commit is contained in:
timfeirg 2018-05-29 13:09:12 +08:00
commit bb32bbfc09
2 changed files with 2 additions and 5 deletions

2
.gitignore vendored
View file

@ -6,3 +6,5 @@ custom/
# temp files directories
cache/
log/
.DS_Store

View file

@ -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