From: Oleg Broytman Date: Tue, 2 Aug 2016 17:37:17 +0000 (+0300) Subject: .shellrc: add completion for git {fixup,rbi,rbia,rbiap,rbip} X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=a349b130623707657fc99f512debf58d8a79cee0 .shellrc: add completion for git {fixup,rbi,rbia,rbiap,rbip} --- diff --git a/.shellrc b/.shellrc index bd1228e..333091c 100644 --- a/.shellrc +++ b/.shellrc @@ -172,6 +172,15 @@ if test -x /usr/bin/git >/dev/null 2>&1; then } if test -n "$BASH_VERSION"; then + # completion for global aliases in .gitconfig + # fixup rbi rbia rbiap rbip - delegate to git-rebase completion + + _git_fixup() { _git_rebase ; } + _git_rbi() { _git_rebase ; } + _git_rbia() { _git_rebase ; } + _git_rbiap() { _git_rebase ; } + _git_rbip() { _git_rebase ; } + # list remotes with URLs matching a regexp list_remotes() { GIT_REMOTES=""