先找一下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
先找一下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
转载于:https://www.cnblogs.com/rayhill/archive/2012/06/20/2555831.html