Skip to content

Instantly share code, notes, and snippets.

@burin
Created December 7, 2012 17:45
Show Gist options
  • Save burin/4235014 to your computer and use it in GitHub Desktop.
Save burin/4235014 to your computer and use it in GitHub Desktop.

Getting tab completion for git!

Go get the script and stick it somewhere ( https://github.com/git/git/blob/master/contrib/completion/git-completion.bash ). i have a ~/.burin directory i put stuff like this

curl -L https://raw.github.com/git/git/master/contrib/completion/git-completion.bash > ~/.burin/git-completion.bash

add it to your ~/.profile

vi ~/.profile

add source ~/.burin/git-completion.bash

reload your .profile in Terminal

source ~/.profile
@moubry
Copy link

moubry commented Dec 7, 2012

You can also get the git-completion.bash file from here:

https://github.com/git/git/blob/master/contrib/completion/git-completion.bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment