From a7a596e4a3c5b1b6bc6a103d9112ed59c6e6ccf6 Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 14 Jun 2017 13:14:54 +0300 Subject: [PATCH] a small reorder to beautify things --- bashplugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashplugins b/bashplugins index d564846..a99799c 100644 --- a/bashplugins +++ b/bashplugins @@ -54,9 +54,9 @@ git_prompt() while read line; do [[ "${line:0:2}" == '##' ]] && branch_info="${line:3}" + [[ "${line:0:2}" == '??' ]] && (( untracked_count++ )) [[ "${line:0:2}" =~ .[MD] ]] && (( unstaged_count++ )) [[ "${line:0:2}" =~ [MDARC]. ]] && (( staged_count++ )) - [[ "${line:0:2}" == '??' ]] && (( untracked_count++ )) [[ "${line:0:2}" =~ (U[ADU]|A[AU]|D[DU]) ]] && (( unmerged_count++ )) done <<< "${raw_status}"