function set_git_prompt() {
__git_ps1 "\u@\h:\w" "\\\$ "
[ $VTE_VERSION ] && __vte_prompt_command
}
if [ -f /etc/bash_completion.d/git-prompt ]
then
GIT_PS1_SHOWCOLORHINTS='yes'
GIT_PS1_SHOWDIRTYSTAT='yes'
GIT_PS1_SHOWSTASHSTATE='yes'
GIT_PS1_SHOWUNTRACKEDFILES='yes'
GIT_PS1_SHOWUPSTREAM='auto
PROMPT_COMMAND='set_git_prompt'
fi