From e9eeae3482b2149ff6a5d2a887879417b823217c Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 29 Aug 2012 19:47:19 +0900 Subject: [PATCH] load git-prompt.sh if available --- bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/bashrc b/bashrc index 34d8341..a8c2117 100755 --- a/bashrc +++ b/bashrc @@ -489,6 +489,7 @@ __my_ps1_moc(){ __my_moc_state "[MOC:%s]" return $last } +test -r /usr/share/git/git-prompt.sh && . /usr/share/git/git-prompt.sh __my_ps1_git(){ local last=$? null type __git_ps1 || return $last