# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  c_reset='\[\e[0m\]'
  c_user='\[\e[1;32m\]'
  c_path='\[\e[0;33m\]'
  c_git_clean='\[\e[0;36m\]'
  c_git_dirty='\[\e[0;35m\]'
  c_git_neutral='\[\e[1;34m\]'
else
  c_reset=
  c_user=
  c_git_clean=
  c_path=
  c_git_clean=
  c_git_dirty=
fi

# Function to assemble the Git parsingart of our prompt.
git_prompt ()
{
  if ! git rev-parse --git-dir > /dev/null 2>&1; then
    return 0
  fi

  git_branch=$(git branch 2>/dev/null | sed -n '/^\*/s/^\* //p')

  git_color="$c_git_neutral"

  echo " [$git_color$git_branch${c_reset}]"
}


# Thy holy prompt.
PROMPT_COMMAND='PS1="\n${c_user}\u${c_reset}@${c_user}\h${c_reset}:${c_path}\w${c_reset}$(git_prompt)\n\$ "'
Add a bash prompt which puts in git branch
Add a bash prompt which puts in git branch
