mac下git不自动补全解决
2015-05-13 本文已影响0人
wasw100
-
git要使用brew安装的, 安装GitHub客户端的那个可能不会自动补全, 如果安装碰到问题可以看下面的解答
http://stackoverflow.com/questions/26809799/install-git-via-homebrew-on-mac-osx-10-10-results-in-error-permission-denied -
安装 bash-completion
brew install bash-completion -
~/.bash_profile中添加下面内容
if [ -f `brew --prefix`/etc/bash_completion ]; then . `brew --prefix`/etc/bash_completion fi -
来源:
https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion