Allow opting out of ZSH completions for Git #2797
Unanswered
seivan
asked this question in
Tap maintenance and Homebrew development
Replies: 2 comments 3 replies
-
|
Does prepending to |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Homebrew prepends its zsh completion to the Here's the code I'm left with: eval "$(/opt/homebrew/bin/brew shellenv)"
# Move prepended Homebrew's fpath to the end.
fpath=(${fpath[@]:1} $fpath[1]) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This commit removed the ability to opt out.
This issue shows that this is inherently a degrading experience for the user. Some of the examples are posted here that documents some of the differences between the two approaches.
There was an attempt to completely remove the official ZSH completions that was shut down on the premise
So long as upstream are providing it: we'll be shipping it, sorry.However, this causes some issues
Forcing the git completions on users, will degrade the experience. How much depends on what you expect, there has been some hyperbole, but in the end there is a degradation in user experience.
There is no way out of it since the way
fpathis setup,site-functionstakes precedence.<tab>don't show aliases.And so on.
Again, this is forced on a user, when installing
gitfrom Homebrew.One solution is for a manual removal of the symlink
/usr/local/share/zsh/site-functions/{_git, git-completion.bash}, but that's not a good approach asbrew upgradewill add them again.Another solution is to opt out of all Homebrew completions, this isn't a viable solution as most are actually useful and it's good to offer a nice out of the box experience.
There was PR that added the ability to opt out, but it was shut down in 2018.
Can there be a new discussions to revive that, and allow users to opt out using
without-completionBeta Was this translation helpful? Give feedback.
All reactions