summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-05-24 19:04:01 -0400
committerMatt Hunter <m@lfurio.us>2026-05-26 02:12:36 -0400
commit33b795656240bbcfa9e9548307c2087fb14b92d1 (patch)
treef6322d36b5a32073cd342b5a2537d1eae6253e6f
parent990756613eb965164025a47caf39893541577c80 (diff)
downloadgit-sonar-33b795656240bbcfa9e9548307c2087fb14b92d1.tar.gz
git-sonar-33b795656240bbcfa9e9548307c2087fb14b92d1.zip
Fix default gray prompt colorHEADmaster
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 <m@lfurio.us>
-rwxr-xr-xgit-sonar2
1 files changed, 1 insertions, 1 deletions
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}"