From c607f9c93c0ecb41994a91b4cfebda4efcce7d9e Mon Sep 17 00:00:00 2001 From: Matt Hunter Date: Sat, 16 May 2026 17:47:48 -0400 Subject: Allow configurable color reset code I found the original context behind why git-radar had custom color reset codes. It sums up to playing more nicely with a background color, such as something used in a "power line" style prompt. This use-case makes sense, so re-introduce a config variable to control this. We still don't need an individual reset value for each prompt element, so keep it to the single general one, defaulted to \033[0m. Link: https://github.com/michaeldfallen/git-radar/issues/14 Signed-off-by: Matt Hunter --- git-sonar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-sonar b/git-sonar index 615e053..6d21831 100755 --- a/git-sonar +++ b/git-sonar @@ -76,7 +76,7 @@ COLOR_RED="\\001\\033[1;31m\\002" COLOR_GREEN="\\001\\033[1;32m\\002" COLOR_YELLOW="\\001\\033[1;33m\\002" COLOR_WHITE="\\001\\033[1;37m\\002" -COLOR_DEF="\\001\\033[0m\\002" +COLOR_DEF="${GIT_SONAR_DEFAULT_COLOR:-"\\001\\033[0m\\002"}" FETCH_TIME="${GIT_SONAR_FETCH_TIME:-"300"}" -- cgit v1.2.3