Skip to content

fix(brew): install shell completions during brew install - #1

Merged
zacharywhitley merged 1 commit into
mainfrom
brew-completions
Jul 7, 2026
Merged

fix(brew): install shell completions during brew install#1
zacharywhitley merged 1 commit into
mainfrom
brew-completions

Conversation

@zacharywhitley

Copy link
Copy Markdown
Contributor

Summary

  • brew install wvm was placing only the binary; no bash/zsh/fish completions ever landed because the formula wasn't calling Homebrew's standard generate_completions_from_executable helper.
  • Restore the exec bit on the binary before invoking it — GitHub's release download strips it and bin.install preserves that, so the helper's first call to `wvm completions bash` would fail with EACCES otherwise.

Same fix as tegmentum/wsvm@eefe4b4.

Test plan

  • brew tap tegmentum/wvm https://github.com/tegmentum/wvm
  • Reviewer: brew reinstall wvm, then check:
    • `$(brew --prefix)/etc/bash_completion.d/wvm`
    • `$(brew --prefix)/share/zsh/site-functions/_wvm`
    • `$(brew --prefix)/share/fish/vendor_completions.d/wvm.fish`

brew install wvm placed only the binary; no bash/zsh/fish completions
were emitted because the formula never called the standard Homebrew
helper. Add generate_completions_from_executable so a fresh install gets
completions in the right per-shell locations.

Also chmod 0755 the binary before running it — GitHub's release download
strips the exec bit, and bin.install preserves that, so the helper's
first call to `wvm completions bash` would EACCES otherwise.

Same fix as tegmentum/wsvm@eefe4b4.
@zacharywhitley
zacharywhitley merged commit 1285b68 into main Jul 7, 2026
1 check passed
@zacharywhitley
zacharywhitley deleted the brew-completions branch July 7, 2026 00:34
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