From 6afb06d8a5b3a2cd91eb6819dd058a0800047a48 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 25 Jul 2025 16:06:31 +0300 Subject: feat(.bashrc): Change user prompt color to green when in SSH --- .bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 87e392f..c1ca23c 100644 --- a/.bashrc +++ b/.bashrc @@ -72,9 +72,12 @@ export PROMPT_COMMAND="shell_var_fix;" 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" -o -n "$SSH_TTY" ] && { + [ -n "$IN_NIX_SHELL" -o -n "$NIX_GCROOT" ] && { hc_mode && PS_USER_BG=67 || PS_USER_BG=46; } + [ -n "$SSH_TTY" ] && { + hc_mode && PS_USER_BG=64 || PS_USER_BG=42; + } # Colors for reporting changes hc_mode && PS_ERR=160 || PS_ERR=41 -- cgit v1.3.1-26-gb76a