From 795512d2b6a1f3162046ee76ae87f8683dfbf051 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowicz Date: Tue, 17 Feb 2015 19:54:59 +0000 Subject: [PATCH] Fixes branch status code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e8dfb9a..e2f185e 100644 --- a/README.md +++ b/README.md @@ -230,10 +230,10 @@ git config --global color.status auto git config --global color.branch auto ``` -#### Branch name and merge status in bash prompt - it goes to ~/.bash_profile +#### Branch name and merge status in bash prompt (should go to local or global bash profile) ```shell function parse_git_dirty { - [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" + [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*" } function parse_git_branch { git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"