aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:23:19 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:23:19 +0100
commite0a91e00736188540b4db9feff8aa77ba1dc46c9 (patch)
tree96af528963417661119b0ee084e094a6989cf1f9
parentfcafb03c9b1030dea399d44dda52f62e9117ad96 (diff)
downloaddotfiles-e0a91e00736188540b4db9feff8aa77ba1dc46c9.tar.gz
dotfiles-e0a91e00736188540b4db9feff8aa77ba1dc46c9.tar.bz2
dotfiles-e0a91e00736188540b4db9feff8aa77ba1dc46c9.zip
feat: add tracked git hooks and justfile
- .githooks/post-commit: runs chezmoi apply after every commit - justfile: 'just install-hooks' sets core.hooksPath - Added justfile and .githooks/ to .chezmoiignore
-rw-r--r--.chezmoiignore2
-rwxr-xr-x.githooks/post-commit2
-rw-r--r--justfile7
3 files changed, 11 insertions, 0 deletions
diff --git a/.chezmoiignore b/.chezmoiignore
index 82bbeb2..2cde505 100644
--- a/.chezmoiignore
+++ b/.chezmoiignore
@@ -7,3 +7,5 @@ create-efi.sh
meta/
etc/
firefox/
+justfile
+.githooks/
diff --git a/.githooks/post-commit b/.githooks/post-commit
new file mode 100755
index 0000000..83acb4f
--- /dev/null
+++ b/.githooks/post-commit
@@ -0,0 +1,2 @@
+#!/bin/sh
+chezmoi apply
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..b1b77b6
--- /dev/null
+++ b/justfile
@@ -0,0 +1,7 @@
+# Install git hooks
+install-hooks:
+ git config core.hooksPath .githooks
+
+# Deploy dotfiles
+apply:
+ chezmoi apply