#!/usr/bin/env nix-shell #! nix-shell -i bash --pure #! nix-shell -p bash git set -euo pipefail echo "Reinstalling git hooks" git_root=$(git rev-parse --show-toplevel) || exit 1 rm -rf $git_root/.git/hooks ln -s $git_root/lib/hooks $git_root/.git/hooks