Skip to content

Commit

Permalink
virtualenvwrapper: set $WORKON_HOME if undefined
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mcornella committed Jun 6, 2018
1 parent 6ace3cd commit f461d21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if (( $+commands[$virtualenvwrapper_lazy] )); then
unsetopt equals
virtualenvwrapper=${${virtualenvwrapper_lazy}:c}
source ${${virtualenvwrapper_lazy}:c}
[[ -z "$WORKON_HOME" ]] && WORKON_HOME="$HOME/.virtualenvs"
}
elif (( $+commands[$virtualenvwrapper] )); then
function {
Expand Down

0 comments on commit f461d21

Please sign in to comment.