Files
omarchy/dot_local/bin/executable_git-summary
Prad Nukala b18729f4a0 Initial import: chezmoi source for Omarchy (Hyprland)
Imported from prdlk/dotfiles master (efdd827), which supersedes the omarchy
branch (3031416). Drops the Umbriel, Noctalia, niri, CachyOS, macOS, and Blume
docs-site layers; docs/ is plain Markdown.
2026-11-02 09:14:11 -05:00

21 lines
583 B
Bash
Executable File

#!/bin/sh
# Aggregate all AGENTS.md files in the current git repo via code2prompt.
repo_root=$(git rev-parse --show-toplevel 2>/dev/null)
if [ -z "$repo_root" ]; then
echo "git-summary: not inside a git repository" >&2
exit 1
fi
template=$HOME/.config/code2prompt/agents-md.hbs
if [ ! -f "$template" ]; then
echo "git-summary: template not found at $template" >&2
exit 1
fi
# Pass through any extra flags (e.g. --output-file, --tokens)
exec code2prompt "$repo_root" \
--include "AGENTS.md" \
--include "**/AGENTS.md" \
--template "$template" \
"$@"