From f5af7f258029f9280d09e9e42ff050f06c86265e Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 18 Jan 2022 09:18:30 -0500 Subject: [PATCH] Cache completion loading --- zsh/.config/zsh/.zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index ac6d2d1..c25978e 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -33,3 +33,12 @@ if which nodenv > /dev/null; then eval "$(nodenv init --no-rehash -)" (nodenv rehash &) 2> /dev/null fi + +autoload compinit -Uz +setopt EXTENDEDGLOB +if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then + compinit +else + compinit -C +fi +unsetopt EXTENDEDGLOB