Update git-prompt settings

This commit is contained in:
Alexandre CATTEAU 2022-03-12 15:45:33 +01:00
parent aa52247f84
commit 7dff3a842c

View File

@ -35,5 +35,5 @@ alias vboxstart='vboxmanage startvm --type=headless'
# Set git prompt NOTE if too slow, see .git-prompt.sh for an alternative solution
[ -e ~/.git-prompt.sh ] && source ~/.git-prompt.sh
GITPS1='$(__git_ps1 " (%s)")'
PS1=${PS1:0:${#PS1}-4}$GITPS1' \$ '
[ -e ~/.git-prompt.sh ] && GITPS1='$(__git_ps1 " (%s)")'
[ -e ~/.git-prompt.sh ] && PS1=${PS1:0:${#PS1}-4}$GITPS1' \$ '