Sometimes while working on multiple branches in a project one can forget to switch the branch before doing some changes, this is specially true for those who enjoy using console over UI tools.
A neat trick to avoid this is to change the shell configuration to show the branch name next to the working directory. To do this we will need to change the shell prompt configuration stored in PS1. ...