centos7 git自动补全

#centos7 git 自动补全
yum install -y bash-completion 

cd /usr/share/doc/git-1.8.3.1/
cp contrib/completion/git-completion.bash /etc/bash_completion.d/ 
echo "source /etc/bash_completion.d/git-completion.bash" >> /etc/bashrc
source /etc/bashrc

 

posted @ 2022-01-10 15:01  s。  阅读(308)  评论(0编辑  收藏  举报