aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/justfile
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:23:26 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:23:26 +0100
commit91c77a81a5f3c193eda8515e8ef053e80ea125ad (patch)
tree4323e95768092358e0f39ececc0c0b25d6fb4dd2 /justfile
parentc8c6fa4fb6685ab4914ff014165a382e9d2db842 (diff)
downloaddotfiles-91c77a81a5f3c193eda8515e8ef053e80ea125ad.tar.gz
dotfiles-91c77a81a5f3c193eda8515e8ef053e80ea125ad.tar.bz2
dotfiles-91c77a81a5f3c193eda8515e8ef053e80ea125ad.zip
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.
Diffstat (limited to 'justfile')
-rw-r--r--justfile9
1 files changed, 6 insertions, 3 deletions
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)