Documentation
1
2
3
4
5
if [ ! -f ".git/hooks/pre-commit" ]; then
mkdir -p .git/hooks
ln -s ../../.direnv/git/hooks/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
fi