diff options
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL/config/bashrc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/INSTALL/config/bashrc b/INSTALL/config/bashrc index 27da492..a8222a0 100644 --- a/INSTALL/config/bashrc +++ b/INSTALL/config/bashrc @@ -68,7 +68,8 @@ if [ "$PS1" ]; then git_status="$(git status 2> /dev/null)" # Set color based on clean/staged/dirty. - if [[ ${git_status} =~ "working directory clean" ]]; then + status_pattern="working (tree|directory) clean" + if [[ ${git_status} =~ ${status_pattern} ]]; then state="${GREEN}" elif [[ ${git_status} =~ "Changes to be committed" ]]; then state="${YELLOW}" |