Description of problem: The "hub" bash completion options always apply to the "git" command, even when I don't have "git" aliased to "hub". Version-Release number of selected component (if applicable): hub-2.2.9-3.fc26 Steps to Reproduce: 1. dnf install hub 2. Start a new shell (that has hub's bash completion present) 3. In the new shell, type "git br" and hit "tab" to show the completion options Actual results: Bash offers two completion options "git branch" and "git browse", even though "browse" is a hub-only command. Expected results: Bash expands "git br" to "git branch". Bash only provides the hub options if "git" has been aliased to the "hub" command. Additional info: The "git browse" option comes from /etc/bash_completion.d/hub.bash_completion.sh.
I've opened a bug upstream[1], but for now I'm going to close this BZ as WONTFIX. The problem is that the bash completion script for `hub` assumes that the alias is being used. I can't easily split it out because the script is fairly complicated. I don't want to remove the bash completion script from the system because then it won't work for `hub`. And I don't want to forcibly install the alias for all users, because that would be unexpected behavior. So my only real option is to ask upstream to split them up. [1] https://github.com/github/hub/issues/1600
Thanks Stephen!