Browse Source

load git-prompt.sh more surely

pull/1/head
10sr 12 years ago
parent
commit
fcc7edabef
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      bashrc

+ 5
- 1
bashrc View File

@@ -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(){


Loading…
Cancel
Save