Import from root chezmoi source

This commit is contained in:
Prad Nukala committed 2026-10-14 13:32:31 -04:00
commit 3eeef30313
61 files changed
+2833

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
function git-summary --description "Aggregate all AGENTS.md files in the current git repo via code2prompt"
# Resolve the repo root so it works from any subdirectory
set -l repo_root (git rev-parse --show-toplevel 2>/dev/null)
if test -z "$repo_root"
echo "git-summary: not inside a git repository" >&2
return 1
end
set -l template ~/.config/code2prompt/agents-md.hbs
if not test -f $template
echo "git-summary: template not found at $template" >&2
return 1
end
# Pass through any extra flags (e.g. --output-file, --tokens)
code2prompt $repo_root \
--include "AGENTS.md" \
--include "**/AGENTS.md" \
--template $template \
$argv
end