Skip to content

Hub Completions Don't Work #541

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

Closed
outdooricon opened this issue Aug 4, 2015 · 8 comments
Closed

Hub Completions Don't Work #541

outdooricon opened this issue Aug 4, 2015 · 8 comments
Assignees

Comments

@outdooricon
Copy link

I have hub completion enabled and gh plugin disabled, but I don't get an completions for hub. I also have git completions enabled. I'm not really sure where to start as far as reporting. This is osx 10.10.4

@nwinkler
Copy link
Member

nwinkler commented Aug 4, 2015

Can you provide an example of what you're trying to do? Like showing what you're typing, when you're hitting the Tab key, what the expected outcome is, and what the actual outcome is...

@outdooricon
Copy link
Author

→ hub pull, expected tab result: → hub pull-request, actual tab result: nothing, stays on prompt
→ hub pull-request, expected tab result: unsure, maybe historical auto-complete, actual tab result: nothing, stays on prompt
→ hub pull-request -b dev, expected tab result: → hub pull-request -b develop, actual tab result: nothing, stays on prompt
also tried replacing hub with git and no result

@nwinkler
Copy link
Member

nwinkler commented Aug 5, 2015

OK, had a look. It looks like the current version of Bash-it only supports the older gh command, not the newer hub one. That's probably the reason why the completion for the hub command is not working.

If you take a look at the gh.completion.bash file, you'll notice that it only sets up completion for the gh command, not for hub.

See #392 for a discussion on this topic.

@tswicegood @edubxb @thedrow - any update on using hub instead of gh? Pull Requests welcome...

@outdooricon
Copy link
Author

woot, thanks @thedrow !

@edubxb edubxb self-assigned this Sep 6, 2015
@edubxb edubxb mentioned this issue Sep 6, 2015
@edubxb
Copy link
Member

edubxb commented Sep 6, 2015

Fixed in PR #562, please, disable the gh plugin and completion and enable it for hub.

@edubxb edubxb closed this as completed Sep 6, 2015
@outdooricon
Copy link
Author

Thanks guys, this is perfect!

@edubxb
Copy link
Member

edubxb commented Sep 11, 2015

😄

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

No branches or pull requests

4 participants
@outdooricon @nwinkler @edubxb and others