From f47261cb227a02cf63c70547a7d09bfeae533848 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 28 Aug 2013 11:10:59 +0200 Subject: [PATCH] parse_git_dirty function works again --- bash_prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_prompt b/bash_prompt index 598d983..f13c3a7 100644 --- a/bash_prompt +++ b/bash_prompt @@ -51,7 +51,7 @@ export BOLD export RESET 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) != *"working directory clean"* ]] && echo "*" } function parse_git_branch() {