bash : git : fix git autocomplete rsync issue.

This commit is contained in:
Dmitry Voronin 2023-10-29 18:22:41 +03:00
parent 73554ad2e9
commit 7e441512ef

View file

@ -65,23 +65,26 @@ gu()
} }
# autocomplete. # autocomplete.
_completion_loader git # if is a fix for rsync.
__git_complete gps _git_push if [[ $- = *i* ]]; then
__git_complete gpsf _git_push _completion_loader git
__git_complete gpl _git_pull __git_complete gps _git_push
__git_complete gl _git_log __git_complete gpsf _git_push
__git_complete gs _git_status __git_complete gpl _git_pull
__git_complete gst _git_stash __git_complete gl _git_log
__git_complete gd _git_diff __git_complete gs _git_status
__git_complete gc _git_commit __git_complete gst _git_stash
__git_complete gch _git_checkout __git_complete gd _git_diff
__git_complete gchb _git_checkout __git_complete gc _git_commit
__git_complete gb _git_branch __git_complete gch _git_checkout
__git_complete gbd _git_branch __git_complete gchb _git_checkout
__git_complete gf _git_fetch __git_complete gb _git_branch
__git_complete gt _git_tag __git_complete gbd _git_branch
__git_complete gp _git_apply __git_complete gf _git_fetch
__git_complete ga _git_add __git_complete gt _git_tag
__git_complete gp _git_apply
__git_complete ga _git_add
fi
_gu() _gu()
{ {