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
commit0cd53c5bbad1d9d16e3e65929f9d730dd9ca4ca8 (patch)
treeccc28501de2145e21a5d91944df42c67a1d9312f /justfile
parent1e2576f15a21d0144df2ab16ab7f61f496167140 (diff)
downloaddotfiles-0cd53c5bbad1d9d16e3e65929f9d730dd9ca4ca8.tar.gz
dotfiles-0cd53c5bbad1d9d16e3e65929f9d730dd9ca4ca8.tar.bz2
dotfiles-0cd53c5bbad1d9d16e3e65929f9d730dd9ca4ca8.zip
fix: pass -S . to chezmoi so apply/status work from any CWD
Without an explicit source, chezmoi defaults to ~/.local/share/chezmoi which doesn't exist on this setup. The post-commit hook uses git rev-parse so it works even if the hook is run from a subdirectory.
Diffstat (limited to 'justfile')
-rw-r--r--justfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/justfile b/justfile
index 2a91239..716f7ed 100644
--- a/justfile
+++ b/justfile
@@ -4,7 +4,7 @@ install-hooks:
# Deploy dotfiles
apply:
- chezmoi apply
+ chezmoi apply -S .
# Install packages from one or more groups (e.g. just install base dev wayland)
install *groups:
@@ -80,7 +80,7 @@ status:
done
echo ""
echo "=== Dotfile drift ==="
- chezmoi status || true
+ chezmoi status -S . || true
# Show install coverage for each group (or full breakdown for one group)
groups group="":