f461d21de1bd0c1394e57a2e3af69778692e4ba4
Author Marc Cornellà <marc.cornella@live.com> Committer GitHub <noreply@github.com> Date 2018-06-06 15:14 UTC
Message virtualenvwrapper: set $WORKON_HOME if undefined
This uses the default that virtualenvwrapper.sh would set if it was called. If the user
changes its value after the plugin is loaded, the plugin will work all the same.
Fixes #6882
Closes #6870
Closes #6883
Diff 1 diff --git a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
2 index 2a7c0b92a0316786c38445506d7f7e5f121e8482..e27c6bb76bda1b012a14a3fdcfda30e7a3ef89a7 100644
3 --- a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
4 +++ b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
5 @@ -7,6 +7,7 @@ if (( $+commands[$virtualenvwrapper_lazy] )); then
6 unsetopt equals
7 virtualenvwrapper=${${virtualenvwrapper_lazy}:c}
8 source ${${virtualenvwrapper_lazy}:c}
9 + [[ -z "$WORKON_HOME" ]] && WORKON_HOME="$HOME/.virtualenvs"
10 }
11 elif (( $+commands[$virtualenvwrapper] )); then
12 function {