dot

packages and services management
Log | Files | Refs | README

commit f2bf848f76263d528a1a4d75bf2904f148b90caa
parent 31c1288367d9f2ae120f6c27774b30ab8264e79f
Author: josuah <mail@josuah.net>
Date:   Tue,  1 Nov 2016 16:36:33 -0400

touch

Diffstat:
Mshell/.profile | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/shell/.profile b/shell/.profile @@ -90,18 +90,24 @@ git_status() done done << EOF -$(git status --porcelain) +$(git status --porcelain -b) EOF - if [ -z "${branch_line##*[*}" ] + branch_line="${branch_line%]}" + + if [ -z "${branch_line##*ahead *}" ] + then + ahead="${branch_line#*ahead }" + fi + + if [ -z "${branch_line##*behind *}" ] then - branch_line="${branch_line#*[}" - branch_line="${branch_line%]*}" + behind="${branch_line#*behind }" fi printf '\033[1m' - if [ "$untracked$conflicts$changed$staged" = '0000' ] + if [ "$untracked$conflicts$changed$staged$ahead$behind" = '000000' ] then printf ' \033[32m✔\033[0m' && return fi