clbarnes / pixybattle

https://github.com/WomensCodingCircle/pixybattle.git
0 stars 1 forks source link

Add git branch to bash prompt string #26

Closed clbarnes closed 7 years ago

clbarnes commented 7 years ago

Whoever's on the robot next, this looks like the simplest way to do it.

https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt don't use that, it's rubbish

This will mean we're less likely to accidentally commit and pull stuff into the wrong branches on the robot.

clbarnes commented 7 years ago

Followed a combination of this https://wiki.archlinux.org/index.php/Git#Git_prompt and copying stuff from my own computer.