From 93a1fcebee2762cd1c82efa96d462758e6ab2683 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Mon, 9 May 2022 11:43:21 -0400 Subject: [PATCH] Do not prompt for applying a chezmoi diff on auto-update if there is nothing to change --- chezmoi/dot_zshrc.d/executable_chezmoi.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chezmoi/dot_zshrc.d/executable_chezmoi.zsh b/chezmoi/dot_zshrc.d/executable_chezmoi.zsh index 92ac88c..92b3c83 100644 --- a/chezmoi/dot_zshrc.d/executable_chezmoi.zsh +++ b/chezmoi/dot_zshrc.d/executable_chezmoi.zsh @@ -30,6 +30,12 @@ fi chezmoi git pull -- --rebase + if [ "$(chezmoi status)" = "" ]; then + # there is nothing different between chezmoi and what is + # applied to this machine + exit 0 + fi + chezmoi diff while true; do