From 289a63fedccf50fd755848988f47f63db27f9e3b Mon Sep 17 00:00:00 2001 From: Maris Popens Date: Sun, 27 Sep 2026 13:36:54 +0300 Subject: [PATCH] fix(dots-setup): record config template hash so chezmoi stops warning --- dot_local/bin/executable_dots-setup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_local/bin/executable_dots-setup b/dot_local/bin/executable_dots-setup index 2594336..6838c4a 100644 --- a/dot_local/bin/executable_dots-setup +++ b/dot_local/bin/executable_dots-setup @@ -407,6 +407,10 @@ excl_toml="${excl_toml%", "}]" _flag() { [[ -n "${enabled_cats[$1]:-}" ]] && echo true || echo false; } +# Only init records .chezmoi.toml.tmpl's hash; without it chezmoi warns "config file +# template has changed" forever. init writes the all-off defaults, overwritten just below. +chezmoi init || echo "warning: chezmoi init failed; the template warning may persist" >&2 + cat > "$CHEZMOI_CONFIG" <