Created
June 28, 2012 18:27
-
-
Save iamnirav/3013076 to your computer and use it in GitHub Desktop.
Faster Git branch name autocomplete
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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