Enable Git Completion and Show Git Branch Name in Bash on Mac
install bash-completion
1
|
|
add bash-completion to your .bash_profile
1 2 3 |
|
show branch name
1 2 3 4 |
|
References
- https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
- http://martinfitzpatrick.name/article/add-git-branch-name-to-terminal-prompt-mac