a small reorder to beautify things
This commit is contained in:
parent
61d88eeddb
commit
a7a596e4a3
1 changed files with 1 additions and 1 deletions
|
@ -54,9 +54,9 @@ git_prompt()
|
||||||
|
|
||||||
while read line; do
|
while read line; do
|
||||||
[[ "${line:0:2}" == '##' ]] && branch_info="${line:3}"
|
[[ "${line:0:2}" == '##' ]] && branch_info="${line:3}"
|
||||||
|
[[ "${line:0:2}" == '??' ]] && (( untracked_count++ ))
|
||||||
[[ "${line:0:2}" =~ .[MD] ]] && (( unstaged_count++ ))
|
[[ "${line:0:2}" =~ .[MD] ]] && (( unstaged_count++ ))
|
||||||
[[ "${line:0:2}" =~ [MDARC]. ]] && (( staged_count++ ))
|
[[ "${line:0:2}" =~ [MDARC]. ]] && (( staged_count++ ))
|
||||||
[[ "${line:0:2}" == '??' ]] && (( untracked_count++ ))
|
|
||||||
[[ "${line:0:2}" =~ (U[ADU]|A[AU]|D[DU]) ]] && (( unmerged_count++ ))
|
[[ "${line:0:2}" =~ (U[ADU]|A[AU]|D[DU]) ]] && (( unmerged_count++ ))
|
||||||
done <<< "${raw_status}"
|
done <<< "${raw_status}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue