Skip to content

Instantly share code, notes, and snippets.

@iamnirav
Created June 28, 2012 18:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamnirav/3013076 to your computer and use it in GitHub Desktop.
Save iamnirav/3013076 to your computer and use it in GitHub Desktop.
Faster Git branch name autocomplete
# By @amc & @lg
# Goes in .bash_profile
complete -o default -W "\$(git branch 2>/dev/null | cut -c 3-)" git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment