1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-11 05:39:45 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Johann Rohwer
ddaf8c981f
Merge 2babe619a3 into 9df4ea095f 2026-02-02 20:50:33 +01:00
JM Rohwer
2babe619a3 feat(virtualenvwrapper): disable lazy script and force full script with environment variable 2021-08-16 14:47:21 +02:00

View File

@ -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