dotfiles/.local/bin/scripts/git-pathhook

5 lines
192 B
Plaintext
Raw Normal View History

2024-07-27 09:22:30 +00:00
#!/bin/sh -ex
# Configure git prepare-commit-msg hook that prefixes common path of changed files
git config core.hooksPath .git/hooks
ln -st .git/hooks $XDG_CONFIG_HOME/git/prepare-commit-msg