feat(git): Use gitleaks in pre-commit git hook

This commit is contained in:
Pratik Tripathy
2024-12-16 21:40:00 +05:30
parent 4a1715446c
commit cb7053fdce
5 changed files with 30 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ ulimit -n 10240
[ ! -f "${XDG_CONFIG_HOME}/templates/.gitignore" ] || export GITIGNORE_TEMPLATE="${XDG_CONFIG_HOME}/templates/.gitignore"
[ ! -f "${XDG_CONFIG_HOME}/templates/.prettierrc" ] || export PRETTIER_TEMPLATE="${XDG_CONFIG_HOME}/templates/.prettierrc"
[ ! -f "${XDG_CONFIG_HOME}/templates/.prettierignore" ] || export PRETTIER_IGNORE_TEMPLATE="${XDG_CONFIG_HOME}/templates/.prettierignore"
[ ! -f "${XDG_CONFIG_HOME}/templates/pre-commit" ] || export GIT_PRECOMMIT_TEMPLATE="${XDG_CONFIG_HOME}/templates/pre-commit"
EDITOR=$(command -v nvim 2>/dev/null || command -v vim 2>/dev/null)
export EDITOR