ga-wdi-boston / orientation

Instructions for students beginning General Assembly's WDI program in Boston
Other
11 stars 198 forks source link

Confirm whether `hub` alone adds bash completion, or if `brew bash-completion` is needed #231

Closed MicFin closed 7 years ago

MicFin commented 7 years ago

Seems like consultants generally have this set up on their own computers.
It enables a developer to use tab to complete the name of a branch.

https://stackoverflow.com/questions/12399002/how-to-configure-git-bash-command-line-completion

raq929 commented 7 years ago

I believe hub is supposed to do this for us, but it's currently not configured correctly to do so.

jrhorn424 commented 7 years ago

I'd like to see this added.

@BenGitsCode Did you confirm or deny that hub takes care of this?

jrhorn424 commented 7 years ago

Dang it @raq929 too fast!

BenGitsCode commented 7 years ago

Yup @raq929 is right, I believe it can be configured to do so but isn't currently.

raq929 commented 7 years ago

Can you post directions for configuration here, plz?

BenGitsCode commented 7 years ago

I'm not entirely sure how to use it in hub, but I'm not testing what I'm seeing on my machine.

without hub and using brew, this strikes me as the easiest option. https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion#os-x--macos

raq929 commented 7 years ago

That's not hub at all. But OK. Sounds fine.

MicFin commented 7 years ago

hub bash completion looks slightly more involved but I did not try it. I did succeed at the steps @BenGitsCode shared above rather easily.

https://github.com/github/hub#shell-tab-completion https://github.com/github/hub/blob/master/etc/hub.bash_completion.sh

jrhorn424 commented 7 years ago

I've read the linked script. Thanks @MicFin.

It looks like as long as hub is configured correctly, it should provide completion by default.

I'd like that confirmed manually.

scottyscripts commented 7 years ago

moved to and closed on GHE https://git.generalassemb.ly/ga-wdi-boston/orientation/issues/231