mislav / hub

A command-line tool that makes git easier to use with GitHub.
https://hub.github.com/
MIT License
22.76k stars 2.2k forks source link

Split git and hub completion scripts #1600

Open sgallagher opened 6 years ago

sgallagher commented 6 years ago

Not everyone that installs hub wishes to use the git alias. Unfortunately, we can't install bash-completion for just hub, because the script that provides it also takes over the git completion.

Please provide separate completion scripts for both git and hub so that they can be installed independently.

ktdreyer commented 6 years ago

In my case I type git br and hit "tab" to show the completion options, and "browse" is a hub-only option.

Can we have the bash completion script do a sanity-check that "git" is aliased as "hub" before activating the completion settings for "git"?

jonasfj commented 6 years ago

To workaround this I deleted the line with browse, now git br<tab> works again. This is obviously an ugly hack.