1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00
This commit is contained in:
Johann Rohwer 2024-09-23 17:52:46 +02:00 committed by GitHub
commit 4b81c855da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,10 +8,14 @@ function {
/usr/share/bash-completion/completions/virtualenvwrapper \ /usr/share/bash-completion/completions/virtualenvwrapper \
$HOME/.local/bin/virtualenvwrapper.sh $HOME/.local/bin/virtualenvwrapper.sh
do do
if [[ -f "$virtualenvwrapper" ]]; then if [[ -f "$virtualenvwrapper" ]]; then
source "$virtualenvwrapper" if [[ $VIRTUALENVWRAPPER_NO_LAZY -eq 1 ]] && [[ $(echo $virtualenvwrapper | grep lazy) ]]; then
return true
else
source "$virtualenvwrapper"
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