From 899676b5296f2e07fc7594ebab54862277471bf4 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 17 Dec 2020 23:30:14 -0800 Subject: [PATCH] Fix bash prompt to show git status correctly --- bash/.config/bash/prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.config/bash/prompt.sh b/bash/.config/bash/prompt.sh index bf4a0e1..565795f 100644 --- a/bash/.config/bash/prompt.sh +++ b/bash/.config/bash/prompt.sh @@ -41,7 +41,7 @@ function parse_git_status { return fi - if [[ $(git status 2> /dev/null | grep -c "working tree|directory clean") -eq 0 ]]; then + if [[ $(git status 2> /dev/null | grep -c "working tree clean") -eq 0 ]]; then echo ' ∓' fi }