Always use verbose mode when commiting in git
Stop ctrl-p randomly changing working directory