Check out my personal bash script which make working on the terminal less painful than it already is.
Each file & directory should exist inside your ~/user/
directory, then, all you have to do is source two files:
source git-completion.bash
source git-prompt.sh
That's it!