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"