Skip to content

Fix zsh completions - #677

Merged
domenkozar merged 13 commits into
NixOS:masterfrom
ivan:fix-zsh-completions
Oct 30, 2026
Merged

domenkozar merged 13 commits into
NixOS:masterfrom
ivan:fix-zsh-completions

Conversation

@ivan

@ivan ivan commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

I noticed that patchelf --print-interpreter <Tab> would not complete a path in zsh ("Completing no more arguments"), so I initially fixed just that. Claude Opus 5.5 noticed more defects, so I worked through those as well.

I tested this a bit and did cross-agent reviews with claude-fable-5-1 / gpt-6-astra / gpt-6.1-sol / gpt-5.6-sol.

ivan added 13 commits October 25, 2026 10:25
It types command lines into an interactive zsh, presses Tab and checks
the result. Cases marked F fail until the following commits fix them.

Assisted-by: Claude Code (Claude Opus 5.5)
Remove "(- : *)" from --print-*, so that further arguments may follow.

Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Claude Code (Claude Opus 5.5)
patchelf treats -- as a file name.

Assisted-by: Claude Code (Claude Opus 5.5)
patchelf patches any number of files in place, but with --output it
writes a single input file's result to the output file.

Assisted-by: Claude Code (Claude Opus 5.5)
Assisted-by: Claude Code (Claude Opus 5.5)
Check all input files instead of only the first and last arguments.

Assisted-by: Claude Code (Claude Opus 5.5)
_values interprets ":" and "[" as syntax.

Assisted-by: Claude Code (Claude Opus 5.5)
Completion functions are global, so avoid a generic name.

Assisted-by: Claude Code (Claude Opus 5.5)
No case is marked F any more.

Assisted-by: Claude Code (Claude Mythos 5.1)
@ivan
ivan force-pushed the fix-zsh-completions branch from 33f8c07 to b6daafc Compare October 25, 2026 10:29
@domenkozar
domenkozar added this pull request to the merge queue Oct 30, 2026
Merged via the queue into NixOS:master with commit c6d89c6 Oct 30, 2026
15 checks passed
@domenkozar domenkozar mentioned this pull request Oct 30, 2026
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.

2 participants