From 9f8d08c41dbbf95f1d5ef453f0aadfe0786a5e94 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 22 Sep 2023 12:12:45 -0400 Subject: [PATCH] Speed up zsh load time --- zsh/.zshenv | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zsh/.zshenv b/zsh/.zshenv index 0a30954..3fb3e29 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,3 +1,12 @@ +# Speed up startup by restricting compinit dump file check to once per day +# https://gist.github.com/ctechols/ca1035271ad134841284#gistcomment-2308206 +autoload -Uz compinit +if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then + compinit; +else + compinit -C; +fi; + export INFOPATH="$HOME/info:/opt/homebrew/share/info:" export LEDGER_FILE="$HOME/journal.ledger"