This commit is contained in:
parent
a54be4863a
commit
0289d90fb9
@ -83,6 +83,7 @@ __z_comp_external() {
|
|||||||
return 3
|
return 3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
zcompile -zUR "$f" || return 4
|
||||||
autoload -Uz "_$c"
|
autoload -Uz "_$c"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
@ -110,8 +111,9 @@ z-comp-invalidate() {
|
|||||||
[ -n "$1" ] || return 1
|
[ -n "$1" ] || return 1
|
||||||
|
|
||||||
f="${ZSHU[d_cache]}/completion/_$1"
|
f="${ZSHU[d_cache]}/completion/_$1"
|
||||||
|
rm -f "$f.zwc"
|
||||||
[ -f "$f" ] || return 2
|
[ -f "$f" ] || return 2
|
||||||
rm -f "$f" || return 3
|
rm -f "$f"
|
||||||
}
|
}
|
||||||
|
|
||||||
## reload or new session are required to regenerate completions
|
## reload or new session are required to regenerate completions
|
||||||
|
@ -14,7 +14,13 @@ dotfiles-git() { (
|
|||||||
z-zwc-gen() {
|
z-zwc-gen() {
|
||||||
local i
|
local i
|
||||||
for i ( "${ZSHU[d_conf]}"/**/*.zsh(N.r) ) ; do
|
for i ( "${ZSHU[d_conf]}"/**/*.zsh(N.r) ) ; do
|
||||||
zcompile -U "$i"
|
zcompile -UR "$i"
|
||||||
|
done
|
||||||
|
for i ( "${ZSHU[d_cache]}/completion"/*(N.r) ) ; do
|
||||||
|
case "$i" in
|
||||||
|
*.zwc ) continue ;;
|
||||||
|
esac
|
||||||
|
zcompile -zUR "$i"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user