X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=b776b4ba2cee39b26e06dc353f1273e6082af9fa;hb=a87861a250838b12add13990f8bb5ed4236d6320;hp=9cee28309e4200258628c5406fc220bb11b4eac5;hpb=1545fda4e3d9b4fd1a06e138ab61513a5633d02e;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 9cee283..b776b4b 100644 --- a/.shellrc +++ b/.shellrc @@ -204,13 +204,16 @@ 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 ; } + # fixup rbi rbia rbiap rbip - do refs name completion + _git_fixup() { __gitcomp_nl "$(__git_refs)" ; } + _git_rbi() { __gitcomp_nl "$(__git_refs)" ; } + _git_rbia() { __gitcomp_nl "$(__git_refs)" ; } + _git_rbiap() { __gitcomp_nl "$(__git_refs)" ; } + _git_rbip() { __gitcomp_nl "$(__git_refs)" ; } + # + # push-to-all-remotes - do branch name completion + _git_push_to_all_remotes() { __gitcomp_nl "$(__git_heads)" ; } # list remotes with URLs matching a regexp _list_remotes() {