DEV Community

Discussion on: How to get the current git branch name?

Collapse
 
deciduously profile image
Ben Lovy

Hm, I don't remember. It's worked for me on both Gentoo and Debian/Ubuntu (and derivatives), but don't know much about Arch. It's been in my ~/.bashrc for years, I don't know where I got it or why it wouldn't work on Arch.