Compare commits

...

3 Commits

Author SHA1 Message Date
Johann Rohwer ee4c960224
Merge 2babe619a3 into 1c2127727a 2025-03-04 12:01:59 +01:00
nasso 1c2127727a
feat(jj): enable dynamic completion (#13003) 2025-03-04 11:46:29 +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
2 changed files with 8 additions and 4 deletions

View File

@ -11,7 +11,7 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_jj" ]]; then
_comps[jj]=_jj
fi
jj util completion zsh >| "$ZSH_CACHE_DIR/completions/_jj" &|
COMPLETE=zsh jj >| "$ZSH_CACHE_DIR/completions/_jj" &|
function __jj_prompt_jj() {
local -a flags

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