To get a bash promp that looks like this:
Use this code in your .bashrc
file:
source /etc/bash_completion.d/git-prompt
if [ "$color_prompt" = yes ]; then
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '