From af520f0186e25bd6a2e942a33d9d2caeea3aad8c Mon Sep 17 00:00:00 2001 From: mattmc3 Date: Fri, 8 Jan 2021 10:21:44 -0500 Subject: [PATCH] Ensure compinit updates its modified date `compinit -i` doesn't always change zcompdump, which means that the `compinit -C` condition fails to run until the completions change. When we `compinit -i`, we should touch the file too to solve this. --- modules/completion/init.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/completion/init.zsh b/modules/completion/init.zsh index 4cf46fa..ab0bf7d 100644 --- a/modules/completion/init.zsh +++ b/modules/completion/init.zsh @@ -40,6 +40,7 @@ if [[ $_comp_path(#qNmh-20) ]]; then else mkdir -p "$_comp_path:h" compinit -i -d "$_comp_path" + touch "$_comp_path" fi unset _comp_path