From e0a91e00736188540b4db9feff8aa77ba1dc46c9 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:23:19 +0100 Subject: 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 --- .chezmoiignore | 2 ++ .githooks/post-commit | 2 ++ justfile | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100755 .githooks/post-commit create mode 100644 justfile 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 -- cgit v1.2.3-70-g09d2