Source git-prompt.sh if present.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 28 Sep 2012 10:26:35 +0000 (28 11:26 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 28 Sep 2012 10:26:35 +0000 (28 11:26 +0100)
In git commit af31a456 the git prompt code was moved out into another
file to permit lazy loading of bash functions. To maintain our git
prompt we must source both files now.

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
etc/profile

index 3f01758..1f3a001 100644 (file)
@@ -152,6 +152,7 @@ esac
 
 
 . /git/contrib/completion/git-completion.bash
+[ -r /git/contrib/completion/git-prompt.sh ] && . /git/contrib/completion/git-prompt.sh
 if test -z "$WINELOADERNOEXEC"
 then
        PS1='\[\033]0;$MSYSTEM:\w\007