diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index 023a90e7..7da53994 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -15,7 +15,15 @@ fi fpath=("${0:h}/external/src" $fpath) # Load and initialize the completion system ignoring insecure directories. -autoload -Uz compinit && compinit -i +# Will only rebuild ~/.zcompdump once per day +autoload -Uz compinit +if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then + compinit +else + compinit -C +fi + + # # Options