dotfiles/.local/bin/scripts/pre-commit-install

7 lines
256 B
Plaintext
Raw Normal View History

#!/bin/sh
# Install pre-commit, ignoring globally set core.hooksPath
2021-11-25 12:57:02 +00:00
git config --unset-all core.hooksPath
GIT_CONFIG_GLOBAL=/dev/null pre-commit install
GIT_CONFIG_GLOBAL=/dev/null pre-commit install -t pre-push
git config --add core.hooksPath .git/hooks