osx - Show git branch and status in Mac Bash -


i use github windows client.the shell powershell nice!

enter image description here

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:

enter image description here

the green name branch, symbol before closing parenthesis status.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -