-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zsh tab completion not active by default #8984
Comments
Hi @yschimke, thanks for sponsoring Homebrew! Please always fill out the issue template; it saves us time when triaging issues. We do install ZSH completions into their standard locations within the Homebrew prefix but unfortunately that's not enough for ZSH to pick them up by default. They need manual configuration in order to avoid security issues. Does that answer your question? |
No, I understand the situation. It seems that it means that completions don't work for most users who will install my app. I'm asking if there is any plan to improve it? It seems suboptimal if most apps print out instructions to include things in startup scripts. P.s. I love homebrew. The sponsorship is unrelated and very minimal. |
Is your app installed by Homebrew?
I don't think we can set this automatically, unfortunately 😭. We do notify users when applications install ZSH completions with setup instructions.
Thanks! Very related in my mind ❤️! |
Yep - three small CLIs https://github.com/yschimke/homebrew-tap/blob/master/rsocket-cli.rb I was hoping to get as closed to one command install, but noone I've tested with has had the final step of zsh completion already set up, so installing these commands for a friend testing something means explaining the additional set of completion files they need to register.
|
Feel free to close if it's not worth the hassle. |
@yschimke I see:
Do you think this message should be better adapted to explain how to setup completion if it isn't already? |
+100, ideally detect if it's already in fpath of the user running the install, and if not explain the steps to fix! |
@alperenkilic I think this is a differnt topic that deserves it's own issue. |
n.b. gradle-completion page has incrrect steps for this, since homebrew location isn't hardcoded. https://github.com/gradle/gradle-completion
The motivation factor to get this working probably means that only the developer who writes the completion to scratch an itch gets the benefit, while everyone else blindly misses that it is not configured. |
Have opened #9292, let me know what you think. |
https://docs.brew.sh/Shell-Completion
https://github.com/Linuxbrew/brew/blob/master/docs/Shell-Completion.md#configuring-completions-in-zsh
It doesn't appear that zsh completion works by default. Even if a user is happily using zsh completion for other commands, homebrew requires explicit extra steps to activate. Could homebrew install zsh completions into the standard locations? Or prompt to automatically insert into the users .zshrc with the specific fix?
The text was updated successfully, but these errors were encountered: