http://stackoverflow.com/questions/17333531/how-can-i-display-the-current-branch-and-folder-path-in-terminal
具体参考上述文章,有一个bash脚本可以被引用