From 2ad3ede1277f78e3a684d6d1fbacb87a88d94118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Hr=C4=8Dek?= Date: Thu, 24 Sep 2026 14:37:21 +0200 Subject: [PATCH] chore: skip lefthook reinstall in .envrc when already installed Runs `lefthook install` only when `lefthook check-install` reports missing or stale hooks, and watches the repo's lefthook config so direnv reloads when it changes. --- .envrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.envrc b/.envrc index 79ac68b..0027e9c 100644 --- a/.envrc +++ b/.envrc @@ -21,4 +21,5 @@ layout_poetry() { layout_poetry use flake -lefthook install \ No newline at end of file +watch_file lefthook.yml +lefthook check-install >/dev/null 2>&1 || lefthook install >/dev/null