#!/bin/bash # Find all your repos that have nonstandard hooks # Probably mostly of use to staff find "$HOME" -type d -name '*.git' -execdir git -C {} config --local --get core.hookspath "!$HOME/hooks/.*" \; -print