From b91e753a6d5d2e782d8a3307f0fa8b24b63cd260 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Thu, 21 Sep 2023 23:17:09 -0700 Subject: [PATCH] fix: Do not enable export when sourcing rc file --- docs/configuration.md | 15 ++++++++++++--- internal/templates/hook.tmpl | 3 +-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 282ed103..585c69ac 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -243,7 +243,7 @@ pre-commit: run: npm run eslint {staged_files} ``` -Provide a tweak to access `npm` executable the same way you do it in your ~/rc +Provide a tweak to access `npm` executable the same way you do it in your ~/rc. ```yml # lefthook-local.yml @@ -254,16 +254,25 @@ Provide a tweak to access `npm` executable the same way you do it in your ~/