diff options
| -rwxr-xr-x | .githooks/post-commit | 2 | ||||
| -rw-r--r-- | justfile | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.githooks/post-commit b/.githooks/post-commit index d2d7eba..ce41b5c 100755 --- a/.githooks/post-commit +++ b/.githooks/post-commit @@ -1,2 +1,2 @@ #!/bin/sh -chezmoi apply -S "$(git rev-parse --show-toplevel)" +chezmoi init --apply -S "$(git rev-parse --show-toplevel)" @@ -2,9 +2,9 @@ install-hooks: git config core.hooksPath .githooks -# Deploy dotfiles +# Deploy dotfiles (regenerates config from template if it changed) apply: - chezmoi apply -S . + chezmoi init --apply -S . # Install packages from one or more groups (e.g. just install base dev wayland) install *groups: @@ -80,6 +80,7 @@ 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) |
