Skip to content

feat: let secondary sources ship executables and completion registries - #123

Merged
0xA3B merged 3 commits into
mainfrom
feat/work-bin-and-completion-dropins
Nov 11, 2026
Merged

0xA3B merged 3 commits into
mainfrom
feat/work-bin-and-completion-dropins

Conversation

@0xA3B

@0xA3B 0xA3B commented Nov 11, 2026

Copy link
Copy Markdown
Owner

A secondary source needs to ship its own executables and register its own CLIs for completion generation without writing any target the primary source owns. This PR adds the two primary-side hooks for that, plus a lint gap that the first secondary shims exposed.

  • Completion registry drop-ins. generate-completions now merges config.json, then config.d/*.json in name order, then config.local.json. A secondary source can ship its own drop-in, and config.local.json stays the machine-local overlay that wins last.
  • Work executables on PATH. 20-work.fish and 20-work.zsh move ~/.local/bin/work to the front of PATH when the directory exists, so shims there shadow the real binaries. On machines without the directory, nothing changes.
  • Shell hook coverage. The shfmt and ShellCheck hooks select files by path. Before this change, they matched dot_local/bin/executable_* only, so a secondary source's shims under dot_local/bin/work/ were never checked and the gate passed without looking at them.

The PATH entry and the drop-in directory name no private content. The executables and the drop-in itself live in the secondary source.

The shell hooks select files by path, so shims a secondary source adds
under dot_local/bin/work/ were skipped and the gate passed unchecked.
A secondary source can register its own CLIs without taking over
config.local.json, which stays the machine-local overlay and merges last.
Secondary-source shims there shadow the real binaries in both fish and
zsh. Personal machines have no such directory, so nothing changes there.
@0xA3B
0xA3B merged commit 7a501c1 into main Nov 11, 2026
2 checks passed
@0xA3B
0xA3B deleted the feat/work-bin-and-completion-dropins branch November 11, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant