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 | fdb68c120e8544ae29006e76fb1165c3310ab631 (patch) | |
| tree | 4b7931fc27602b218af265d4bc7dd7f7d20216bd /tests | |
| parent | f3526632257686692687b1b5a596eb399e42b119 (diff) | |
| download | archsetup-fdb68c120e8544ae29006e76fb1165c3310ab631.tar.gz archsetup-fdb68c120e8544ae29006e76fb1165c3310ab631.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 'tests')
0 files changed, 0 insertions, 0 deletions
