This commit is contained in:
Johann Rohwer 2025-01-10 17:50:24 +01:00 committed by GitHub
commit 99ab8c3bb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 3 deletions

View File

@ -9,9 +9,13 @@ function {
$HOME/.local/bin/virtualenvwrapper.sh $HOME/.local/bin/virtualenvwrapper.sh
do do
if [[ -f "$virtualenvwrapper" ]]; then if [[ -f "$virtualenvwrapper" ]]; then
if [[ $VIRTUALENVWRAPPER_NO_LAZY -eq 1 ]] && [[ $(echo $virtualenvwrapper | grep lazy) ]]; then
true
else
source "$virtualenvwrapper" source "$virtualenvwrapper"
return return
fi fi
fi
done done
print "[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.\n"\ print "[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.\n"\
"Please install with \`pip install virtualenvwrapper\`" >&2 "Please install with \`pip install virtualenvwrapper\`" >&2