Ubuntu系统 git命令补全

 

 

apt-get install bash-completion

vim ~/.bashrc  在文件的最后一行加如下代码

if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

 

source ~/.bashrc

 

posted @ 2024-10-22 17:41  LiuYanYGZ  阅读(26)  评论(0编辑  收藏  举报