From 5e6e33880740c953ca1ddb99ca5690a0ceaf6e1c Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sat, 6 Nov 2021 11:19:14 -0400 Subject: [PATCH] Utilize compinit caching Substantial speedup --- zsh/.zshrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 2977c93..40c7163 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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}'