From 91c77a81a5f3c193eda8515e8ef053e80ea125ad Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:23:26 +0100 Subject: refactor: revert auto-init, add dedicated 'just init' recipe chezmoi init is only needed when .chezmoi.toml.tmpl changes, so running it on every apply is unnecessary overhead. Run 'just init' manually when the template changes. --- justfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'justfile') diff --git a/justfile b/justfile index 8191241..e201c31 100644 --- a/justfile +++ b/justfile @@ -2,9 +2,13 @@ install-hooks: git config core.hooksPath .githooks -# Deploy dotfiles (regenerates config from template if it changed) +# Deploy dotfiles apply: - chezmoi init --apply -S . + chezmoi apply -S . + +# Regenerate chezmoi config from .chezmoi.toml.tmpl (run when the template changes) +init: + chezmoi init -S . # Install packages from one or more groups (e.g. just install base dev wayland) install *groups: @@ -80,7 +84,6 @@ status: done echo "" echo "=== Dotfile drift ===" - chezmoi init -S . >/dev/null 2>&1 || true chezmoi status -S . || true # Show install coverage for each group (or full breakdown for one group) -- cgit v1.2.3-70-g09d2