DEV Community

Discussion on: Easily get current branch name in git

Collapse
 
lucasreeh profile image
Lucas Reeh • Edited

Thanks for the Info. I am using Oh my zsh based on zsh where you see the current branch directly in your prompt. It is very easy to install (it is a git repo itself with install script on github), so I even install it in some dev docker containers.

my favorite theme:
Agnoster theme

Collapse
 
sabareeshk1991 profile image
Sabz

me too:)

Collapse
 
andy profile image
Andy Zhao (he/him) • Edited

I'm tempted to use zsh with Oh my zsh (along with Vim), but haven't quite decided to switch over yet. My bash has something similar, where the branch is in the prompt:

bash branches

Collapse
 
lucasreeh profile image
Lucas Reeh • Edited

without trying to sound like a salesman ;) (it is open-source anyway): i foremost like the completion from history (works with spaces too). e.g. type: git commit + arrow up and you get all your recent commit commands. :)