[shell脚本]为git添加自动提示功能

Ubuntu升级以后,很多自定义的配置文件给我干掉了,没办法,重来。

[shell]
wget http://repo.or.cz/w/git.git/blob_plain/HEAD:/contrib/completion/git-completion.bash -O ~/.git-completion.bash
echo "source ~/.git-completion.bash" >> ~/.bashrc
source ~/.git-completion.bash
[/shell]