From 998fd9da33dc7a74e88fa71e2082c48bbc22c4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Fri, 19 May 2017 22:57:02 +0200 Subject: [PATCH] Regenerate completion dump only once a day --- .zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 40cc4f0..12a2021 100644 --- a/.zshrc +++ b/.zshrc @@ -576,7 +576,11 @@ fi # at last initialize completion autoload -Uz compinit -compinit +if [[ -n ${ZDOTDIR}/.zcompdump(#qN.mh+24) ]]; then + compinit +else + compinit -C +fi store_last_return_value() { LAST_RETURN_VALUE="$?"