安装完成后,会发现一个问题,git后面的参数无法自动补全,进行如下操作即可
suse-linux:~ # ll /etc/bash_completion.d/ | grep git
-rw-r--r-- 1 root root 17671 Dec 11 23:38 git-prompt.sh
-rw-r--r-- 1 root root 79026 Dec 11 23:38 git.sh
suse-linux:~ # source /etc/bash_completion.d/git.sh # source一下就生效了
suse-linux:~ # git # tab键按两下,就可以看到后面所需的参数了
add clone help range-diff show
am commit init rebase show-branch
apply config instaweb reflog sparse-checkout
archive describe log remote stage
bisect diff maintenance repack stash
blame difftool merge replace status
branch fetch mergetool request-pull submodule
bundle format-patch mv reset switch
checkout fsck new-workdir restore tag
cherry gc notes revert whatchanged
cherry-pick gitk prune rm worktree
citool grep pull send-email
clean gui push shortlog
# BBG打火机,哪里不会点哪里,麻麻再也不用担心我走火了