1
0
Fork 0

a small reorder to beautify things

This commit is contained in:
Von Random 2017-06-14 13:14:54 +03:00
parent 61d88eeddb
commit a7a596e4a3

View file

@ -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}"