@horx 用了后terminal用不了了... Last login: Wed Nov 6 20:31:49 on ttys000
[Process completed]
正在搜索如何重置terminal...
tedd
2013-11-06 20:50:34 +08:00
最后还是用了zsh...
zeroday
2014-07-27 20:10:10 +08:00
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