From 33b795656240bbcfa9e9548307c2087fb14b92d1 Mon Sep 17 00:00:00 2001 From: Matt Hunter Date: Sun, 24 May 2026 19:04:01 -0400 Subject: Fix default gray prompt color The gray color for 'git:(' ')' which surrounds the branch information in the default prompt was originally chosen for its appearance in the macos terminal, which I believe renders bold colors as bright. My own terminal emulator also renders bold colors this way. "Bold bright black" is the intended color for this value, but on many other terminals it appears as a very dark and unreadable bit of text. So make the correct color explicit by using black from the bright range of colors (90). Signed-off-by: Matt Hunter --- git-sonar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-sonar b/git-sonar index 50f443c..ee31a65 100755 --- a/git-sonar +++ b/git-sonar @@ -74,7 +74,7 @@ precheck_status=$? CS="${GIT_SONAR_COLOR_PREFIX:-"\\001"}" # ASCII start of heading CE="${GIT_SONAR_COLOR_SUFFIX:-"\\002"}" # ASCII start of text COLOR_DEF="${GIT_SONAR_DEFAULT_COLOR:-"${CS}\\033[0m${CE}"}" -COLOR_GRAY="${CS}\\033[1;30m${CE}" +COLOR_GRAY="${CS}\\033[1;90m${CE}" COLOR_RED="${CS}\\033[1;31m${CE}" COLOR_GREEN="${CS}\\033[1;32m${CE}" COLOR_YELLOW="${CS}\\033[1;33m${CE}" -- cgit v1.2.3