Created
October 10, 2014 21:17
-
-
Save mppatterson/bc57b33d659df60974b1 to your computer and use it in GitHub Desktop.
Git alias with 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
# Alias 'g' to 'git' and provide autocomplete functionality. | |
alias g='git' | |
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null || complete -o default -o nospace -F _git g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment