Centos 6.2 git 命令自动补全
先找一下git命令自动补全的脚本在哪:
locate 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 ~/.git-completion
vim .bashrc >source ~/.git-completion
OK