-
Notifications
You must be signed in to change notification settings - Fork 1
Pipeline Plan 1
Seth Ford edited this page Feb 8, 2026
·
3 revisions
The plan has been created. Here's a summary:
-
scripts/cct-init.sh— single file change, inserting a new section after the CLAUDE.md blocks (line 275), before the tmux reload section.
A new # ─── Shell Completions section that:
-
Detects the current shell from
$SHELL -
Installs per shell type:
-
zsh: copies
_shipwright→~/.zsh/completions/, addsfpathto.zshrcif missing -
bash: copies
shipwright.bash→/usr/local/etc/bash_completion.d/(macOS, if writable) or~/.local/share/bash-completion/completions/(Linux/fallback) -
fish: copies
shipwright.fish→~/.config/fish/completions/
-
zsh: copies
-
Idempotency via
cmp -s— if file already matches, prints "already installed" and skips -
Graceful degradation — warns if
completions/dir is missing or shell is unsupported
- Uses
cmp -sfor idempotency (Bash 3.2 compatible) - Only appends
fpathto.zshrcif not already present (grep check) - Bash falls back from system-wide dir to user-local dir if not writable
- All output uses existing
info(),success(),warn()helpers - No new files created, no test file changes needed
Covers: section insertion, per-shell install logic, idempotency, edge cases, test suite verification, and manual smoke test.
All completions auto-installed for zsh/bash/fish, idempotent, clear messaging, existing tests pass, Bash 3.2 compatible.