zsh: only use compinit once per day
This commit is contained in:
parent
92ac9d4940
commit
4825a6d52f
1 changed files with 6 additions and 1 deletions
5
.zshrc
5
.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
|
||||
# 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) >>>
|
||||
|
|
Loading…
Add table
Reference in a new issue