diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-20 09:12:03 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-20 09:12:03 -0500 |
| commit | 6168f66cfb9bc42eba634089826c2a4b8da01fc6 (patch) | |
| tree | 9534d2d158fa9f0d9975af817fe886d1c7625dbb /scripts/testing/debug-vm.sh | |
| parent | da7896e3136807ff1b19410f866da12262eab0db (diff) | |
| download | archsetup-6168f66cfb9bc42eba634089826c2a4b8da01fc6.tar.gz archsetup-6168f66cfb9bc42eba634089826c2a4b8da01fc6.zip | |
hey: convert alias to function with git awareness + FETCH_HEAD cache
The 'hey' alias launched claude with 'Read docs/protocols.org' — broken
after the docs/ → .ai/ restructure. While updating the path, add
matching behavior to aix:
- Bail early if the current dir isn't a .ai/ template project
- Fetch upstream only when FETCH_HEAD is stale (>10 min old) — avoids
re-fetching on back-to-back invocations in the same project
- Auto-pull when clean, behind, not ahead
- Print a one-line git-status summary otherwise (↑N ↓N dirty)
- Launch claude with the updated .ai/protocols.org path
Function identical across .bashrc.d and .zshrc.d (bash/zsh compatible).
Tested: non-template dir bails cleanly with exit 1; template project
shows status and launches claude; repeated invocations reuse
FETCH_HEAD cache silently.
Diffstat (limited to 'scripts/testing/debug-vm.sh')
0 files changed, 0 insertions, 0 deletions
