Last active
March 31, 2017 15:12
-
-
Save brbsix/713feaf3034d60bbe4774cb8ee03bd55 to your computer and use it in GitHub Desktop.
Bash completion for git aliases
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
# [Git] | |
_completion_loader git | |
alias g="git" | |
__git_complete g _git | |
alias ga="git add" | |
__git_complete ga _git_add | |
alias gap="git add --patch" | |
__git_complete gap _git_add | |
alias gb="git branch" | |
__git_complete gb _git_branch | |
alias gba="git branch -a" | |
__git_complete gba _git_branch | |
alias gc="git commit" | |
__git_complete gc _git_commit | |
alias gd="git diff" | |
__git_complete gd _git_diff | |
alias gdc="git diff --cached" | |
__git_complete gdc _git_diff | |
alias gdm="git difftool --tool=meld 2>/dev/null" | |
__git_complete gdm _git_difftool | |
alias gdcm="git difftool --cached --tool=meld 2>/dev/null" | |
__git_complete gdcm _git_difftool | |
alias glo="git log --graph --oneline" | |
__git_complete glo _git_log | |
alias gp="git push" | |
__git_complete gp _git_push | |
alias gr="git remote --verbose" | |
__git_complete gr _git_remote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment