osx - Show git branch and status in Mac Bash -
i use github windows client.the shell powershell nice!
how implement on mac? not branch name,i want git status
git has this: https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh
usage sample:
git_ps1_showupstream="auto" git_ps1_showcolorhints="yes" source ~/.git-prompt.sh export prompt_command='__git_ps1 "\u@\h:\w" "\\\$ ";'
it looks this:
the green name branch, symbol before closing parenthesis status.
Comments
Post a Comment