From e88648f2cc98b4125454d837dfe7b244a5771e5c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 1 Mar 2025 12:31:43 +0200 Subject: fix(bash): Make low-color mode colors correspond to 4bit values --- .bashrc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.bashrc b/.bashrc index a7ba14c..58e08f3 100644 --- a/.bashrc +++ b/.bashrc @@ -69,18 +69,18 @@ export PROMPT_COMMAND="shell_var_fix;" } PS_BG=0 - hc_mode && PS_FG=223 || PS_FG=7 - hc_mode && PS_USER_BG=66 || PS_USER_BG=4 + hc_mode && PS_FG=223 || PS_FG=37 + hc_mode && PS_USER_BG=66 || PS_USER_BG=44 # Thanks https://github.com/NixOS/nix/issues/9174#issuecomment-2054057401 [ -n "$IN_NIX_SHELL" -o -n "$NIX_GCROOT" ] && { - hc_mode && PS_USER_BG=67 || PS_USER_BG=6; + hc_mode && PS_USER_BG=67 || PS_USER_BG=46; } # Colors for reporting changes - hc_mode && PS_ERR=160 || PS_ERR=1 - hc_mode && PS_WARN=172 || PS_WARN=3 - hc_mode && PS_INFO=97 || PS_INFO=5 - hc_mode && PS_DBG=52 || PS_DBG=1 + hc_mode && PS_ERR=160 || PS_ERR=41 + hc_mode && PS_WARN=172 || PS_WARN=43 + hc_mode && PS_INFO=97 || PS_INFO=45 + hc_mode && PS_DBG=52 || PS_DBG=41 hc_mode && PS_TRIANGLE='' || PS_TRIANGLE='|' hc_mode && PS_TRIANGLE_BOT='' || PS_TRIANGLE='|' -- cgit v1.2.3