From 7680977a04ca01dc43594abde9f2d4e95621f96b Mon Sep 17 00:00:00 2001 From: lub Date: Fri, 20 Nov 2020 17:02:51 +0100 Subject: [PATCH] add __git_ps1 to PS1 --- dotfiles/bash/.bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc index b7c4f09..f7a8cde 100644 --- a/dotfiles/bash/.bashrc +++ b/dotfiles/bash/.bashrc @@ -28,7 +28,8 @@ function 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 ip='ip --color=auto'