diff --git a/.zshrc b/.zshrc index 20c7f8e..8118cfc 100644 --- a/.zshrc +++ b/.zshrc @@ -211,7 +211,12 @@ export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;36m' export LESS=-R autoload -Uz compinit colors zcalc -compinit -C +# only do full compinit once per day, use cached version usually +if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then + compinit +else + compinit -C +fi colors # <<< # auto save and load working dir (allow `cd -` on start) >>>