1

Is there a way to make the shell autocomplete git branch names like it does in linux(mint). While typing, for example,

git push -u origin so<tab>

in linux, this will give me all the branches that start with “so”. Is there a way to get this behavior with the shell (on OS X)?

Chris Page
  • 3,385

1 Answers1

2

The best results possible currently will be found by installing fish: https://fishshell.com

It comes with very snazzy Git completions that work out of the box and targets OS X as a first class platform. I'd suggest installing through homebrew if you have it - otherwise download the pkg installer. You'll probably have it up and running in less time than it'd take to get the disappointing bash completions.