DEV Community

Discussion on: Easily get current branch name in git

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. :)