Skip to content

Fix zsh completion initialization#5

Open
esnssr wants to merge 2 commits into
simonbs:mainfrom
esnssr:fix/zsh-completion-init
Open

Fix zsh completion initialization#5
esnssr wants to merge 2 commits into
simonbs:mainfrom
esnssr:fix/zsh-completion-init

Conversation

@esnssr

@esnssr esnssr commented May 15, 2026

Copy link
Copy Markdown

Summary

this issues has been annoying me for a while, and i thought i didn't configure it correctly, hopefully this fixes the issue for other people, it works for me.

Changes

  • initialize zsh bash completion support before registering the wut completion handler
  • guard compinit so existing zsh completion registrations are not reset
  • add a regression test for the generated init script ordering

Verification

  • go test -count=1 ./...
  • go build -o /private/tmp/wut-fork-pr-test ./cmd/wut
  • zsh and bash init smoke checks

@esnssr esnssr marked this pull request as draft May 15, 2026 09:24
@esnssr esnssr marked this pull request as ready for review May 15, 2026 09:57
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