add __git_ps1 to PS1

master
lub 4 years ago
parent d6cca7b6bc
commit 7680977a04

@ -28,7 +28,8 @@ function sqlsetup {
cp -a ~/git/sqlsetup/* ~/shares/sqlsetup/ cp -a ~/git/sqlsetup/* ~/shares/sqlsetup/
} }
PS1='`[ $? = 0 ] || echo "$? "`[\u@\h \w]\$ ' source /usr/share/git/git-prompt.sh
PS1='`[ $? = 0 ] || echo "$? "`[\u@\h \w`__git_ps1 " (%s)"`]\$ '
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias ip='ip --color=auto' alias ip='ip --color=auto'

Loading…
Cancel
Save