summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-03-01 12:31:43 +0200
committerSyndamia <kamen@syndamia.com>2025-03-01 12:31:43 +0200
commite88648f2cc98b4125454d837dfe7b244a5771e5c (patch)
tree9bb9107b741f96ce0e71613e4c085a78b308a401
parente406848e48b4bef66572d94feead19a4f382a561 (diff)
downloaddotfiles-e88648f2cc98b4125454d837dfe7b244a5771e5c.tar
dotfiles-e88648f2cc98b4125454d837dfe7b244a5771e5c.tar.gz
dotfiles-e88648f2cc98b4125454d837dfe7b244a5771e5c.zip
fix(bash): Make low-color mode colors correspond to 4bit values
-rw-r--r--.bashrc14
1 files 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='|'