@horx 用了后terminal用不了了... Last login: Wed Nov 6 20:31:49 on ttys000
[Process completed]
正在搜索如何重置terminal...
tedd
2013 年 11 月 6 日
最后还是用了zsh...
zeroday
2014 年 7 月 27 日
bash也可以的,查阅了一些资料,需要 __git_ps1
OS X
在 ~/.bash_profile 中添加
if [ -f $(xcode-select -p)/usr/share/git-core/git-completion.bash ]; then . $(xcode-select -p)/usr/share/git-core/git-completion.bash . $(xcode-select -p)/usr/share/git-core/git-prompt.sh fi