Maiasaura
Maiasaura

Reputation: 32996

How do I display my git branch and commit status on my mac osx terminal?

I've seen numerous scripts to display the current branch but I'd like to replicate this exact set up this exact set up (see right side of screenshot). Does anyone know how to make it possible?

link to full size screenshot

Upvotes: 3

Views: 2957

Answers (2)

johnlcox
johnlcox

Reputation: 520

Check out oh-my-zsh. It has different themes that can show the current git branch. You can view screenshots of many of the currently available themes here: themes

Upvotes: 3

Michael Krelin - hacker
Michael Krelin - hacker

Reputation: 143269

The closest I can think of is something like

git describe --all --dirty=' ±'

Maybe not exactly what you need, but maybe you can work from that.

Upvotes: 2

Related Questions