Utilize compinit caching

Substantial speedup
This commit is contained in:
Andrew Tomaka 2021-11-06 11:19:14 -04:00
parent 019f27d538
commit 5e6e338807
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -47,7 +47,16 @@ fi
# completion
autoload -U compinit
autoload bashcompinit && bashcompinit
compinit
autoload compinit -Uz
setopt EXTENDEDGLOB
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then
compinit
else
compinit -C
fi
unsetopt EXTENDEDGLOB
setopt completeinword
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'