#!/usr/bin/env bash
# Point git at the repo-local hooks directory so pre-commit checks run
# automatically. Run once after cloning.

set -euo pipefail

repo_root="$(git rev-parse --show-toplevel)"
cd "$repo_root"

git config core.hooksPath .githooks
echo "Installed hooks from .githooks (core.hooksPath set for this repo)."
