#!/usr/bin/env bash # Wire `.githooks/` into this clone of the repo. # # Run once after cloning. No external deps. Per-clone — does not touch # global git config. To un-install: `git config --unset core.hooksPath`. set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")/.." git config core.hooksPath .githooks chmod +x .githooks/* echo "✓ pre-commit hook active (.githooks/)" echo " scans Markdown surfaces with scripts/check-no-vanity-metrics.sh"