Source bash completion for git prompt
This commit is contained in:
parent
4f3ba44634
commit
83d2f034bf
@ -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\]$ '
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user