From aaa525912eb1abeda82f82dc3e4f744b4801f0c1 Mon Sep 17 00:00:00 2001 From: Meutel Date: Fri, 20 May 2016 19:43:25 +0200 Subject: [PATCH] Git prompt linux --- _bashrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/_bashrc b/_bashrc index e8f1f9f..91372e7 100644 --- a/_bashrc +++ b/_bashrc @@ -106,8 +106,13 @@ fi if [ -e /usr/local/share/git-core/contrib/completion/git-completion.bash ]; then . /usr/local/share/git-core/contrib/completion/git-completion.bash fi -if [ -e /usr/local/share/git-core/contrib/completion/git-prompt.sh ]; then - . /usr/local/share/git-core/contrib/completion/git-prompt.sh +if [ -e /usr/local/share/git-core/contrib/completion/git-prompt.sh ] || [ -e /usr/lib/git-core/git-sh-prompt ]; then + if [ -e /usr/lib/git-core/git-sh-prompt ]; then + . /usr/lib/git-core/git-sh-prompt + fi + if [ -e /usr/local/share/git-core/contrib/completion/git-prompt.sh ]; then + . /usr/local/share/git-core/contrib/completion/git-prompt.sh + fi export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWSTASHSTATE=1 export GIT_PS1_SHOWUNTRACKEDFILES=1