From fcc7edabefe2ffa169d68193b1e7ae68caea03ef Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 24 Sep 2012 13:39:58 +0900 Subject: [PATCH] load git-prompt.sh more surely --- bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 3bd6694..531b219 100755 --- a/bashrc +++ b/bashrc @@ -570,7 +570,11 @@ __my_ps1_moc(){ __my_moc_state "[MOC:%s]" return $last } -test -r /usr/share/git/git-prompt.sh && . /usr/share/git/git-prompt.sh +for f in /usr/share/git/git-prompt.sh \ + /opt/local/share/doc/git-core/contrib/completion/git-prompt.sh +do + test -r $f && . $f && break +done GIT_PS1_SHOWDIRTYSTATE=t GIT_PS1_SHOWUPSTREAM=t __my_ps1_git(){