mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
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
This commit is contained in:
parent
a86f8fb731
commit
54d1df0deb
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue