commit f6653e6b2ec25285564200921d2ed86dcf139667
parent 025ff32bfd2757d833fc1bc33e4777102768c85d
Author: Addie GS <addie@pigsflew.com>
Date: Tue, 12 Jun 2018 13:11:09 -0700
parent 025ff32bfd2757d833fc1bc33e4777102768c85d
Author: Addie GS <addie@pigsflew.com>
Date: Tue, 12 Jun 2018 13:11:09 -0700
Reset color upon exit Uses a trap for any type of exit to clean up the terminal color just in case we haven't already. Was finding that on OSX it did not clear colors.
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/git-summary b/git-summary @@ -254,6 +254,7 @@ max_len () { echo "$1" | $gawk_cmd '{ print length }' | sort -rn | head -1 } +trap "printf '$NC'" EXIT git_summary $@
: nply/git-summary