Add git branch in prompt under Mac OSX 发表于21 10 月, 2013由chenhongyi I found a article to do this: http://www.phpvim.net/os/mac/git-branch-in-bash-prompt.html It works.