diff options
| author | 2026-04-21 01:23:26 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:23:26 +0100 | |
| commit | 91c77a81a5f3c193eda8515e8ef053e80ea125ad (patch) | |
| tree | 4323e95768092358e0f39ececc0c0b25d6fb4dd2 /justfile | |
| parent | c8c6fa4fb6685ab4914ff014165a382e9d2db842 (diff) | |
| download | dotfiles-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-- | justfile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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) |
