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

posted @ 2012-06-20 10:25  ray hill  阅读(548)  评论(0编辑  收藏  举报