Source bash completion for git prompt

This commit is contained in:
Mahesh Asolkar 2019-08-22 22:37:36 -07:00
parent 4f3ba44634
commit 83d2f034bf

View File

@ -1,6 +1,9 @@
# -------------------------------- # --------------------------------
# Shell RC # Shell RC
# -------------------------------- # --------------------------------
if [ -f /etc/bash_completion.d/git-prompt ]; then
source /etc/bash_completion.d/git-prompt
fi
export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWDIRTYSTATE=1
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostname)\[\033[01;34m\] \w\[\033[01;35m\]$(__git_ps1 "  %s") \[\033[0m\]$ ' PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostname)\[\033[01;34m\] \w\[\033[01;35m\]$(__git_ps1 "  %s") \[\033[0m\]$ '