git命令无法自动补全(sles11.3)

找到git-completion bash文件

find / -name 'git-completion'

/usr/share/doc/git-1.7.1/contrib/completion/git-completion.bash

 

复制文件

cp /usr/share/doc/git-1.7.1/contrib/completion/git-completion.bash /etc/bash_completion.d/

source /etc/bash_completion.d/git-completion.bash

posted @ 2018-03-21 09:54  二虎  阅读(497)  评论(1编辑  收藏  举报