mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-15 01:48:34 -07:00
feat(virtualenvwrapper): disable lazy script and force full script with environment variable
This commit is contained in:
parent
11e22ed0b5
commit
2babe619a3
@ -8,10 +8,14 @@ function {
|
||||
/usr/share/bash-completion/completions/virtualenvwrapper \
|
||||
$HOME/.local/bin/virtualenvwrapper.sh
|
||||
do
|
||||
if [[ -f "$virtualenvwrapper" ]]; then
|
||||
source "$virtualenvwrapper"
|
||||
return
|
||||
if [[ -f "$virtualenvwrapper" ]]; then
|
||||
if [[ $VIRTUALENVWRAPPER_NO_LAZY -eq 1 ]] && [[ $(echo $virtualenvwrapper | grep lazy) ]]; then
|
||||
true
|
||||
else
|
||||
source "$virtualenvwrapper"
|
||||
return
|
||||
fi
|
||||
fi
|
||||
done
|
||||
print "[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.\n"\
|
||||
"Please install with \`pip install virtualenvwrapper\`" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user