Unverified Commit f461d21d authored by Marc Cornellà's avatar Marc Cornellà Committed by GitHub

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
parent 6ace3cd1
...@@ -7,6 +7,7 @@ if (( $+commands[$virtualenvwrapper_lazy] )); then ...@@ -7,6 +7,7 @@ if (( $+commands[$virtualenvwrapper_lazy] )); then
unsetopt equals unsetopt equals
virtualenvwrapper=${${virtualenvwrapper_lazy}:c} virtualenvwrapper=${${virtualenvwrapper_lazy}:c}
source ${${virtualenvwrapper_lazy}:c} source ${${virtualenvwrapper_lazy}:c}
[[ -z "$WORKON_HOME" ]] && WORKON_HOME="$HOME/.virtualenvs"
} }
elif (( $+commands[$virtualenvwrapper] )); then elif (( $+commands[$virtualenvwrapper] )); then
function { function {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment