From 48328913fcf1d9df35b68ff16533e9cad0985bcc Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 15 Nov 2013 00:13:46 +0900 Subject: [PATCH] load git-prompt only in bash --- shrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shrc b/shrc index 0fea3d5..d65eaff 100755 --- a/shrc +++ b/shrc @@ -1021,7 +1021,7 @@ for f in /usr/share/git/git-prompt.sh \ /opt/local/share/git-core/git-prompt.sh \ /opt/local/share/doc/git-core/contrib/completion/git-prompt.sh do - test -r "$f" && . "$f" && break + test -r "$f" && inbash && . "$f" && break done GIT_PS1_SHOWDIRTYSTATE=t GIT_PS1_SHOWUPSTREAM=t