From ad8e4d1ff12a406b281382774a3e48a27aedf1a2 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Fri, 31 Mar 2023 02:35:08 -0400 Subject: Make the 'SSH' label in '$PS1' more visible The SSH label should jump out at you. This change makes it cyan instead of grey, to match the color of the username component. --- home/.bashrc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/home/.bashrc b/home/.bashrc index 946c3ef..92a4a3c 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -47,13 +47,12 @@ PS1+="[$TTY_NUM] [\D{%F} \t] " PS1+=$PS1_COLOR_RESET # [SSH USER@HOST] -PS1+=$PS1_COLOR_MAIN +PS1+="$PS1_COLOR_MAIN[$PS1_COLOR_RESET" # [ if [[ "$SSH_TTY" == "/dev/pts"* ]]; then # if this is SSH session - PS1+="[SSH " # add "[SSH " -else # if not - PS1+="[" # don't + PS1+=$PS1_COLOR_CYAN # + PS1+="SSH " # add "SSH " + PS1+=$PS1_COLOR_RESET fi -PS1+=$PS1_COLOR_RESET PS1+="$PS1_COLOR_CYAN\u$PS1_COLOR_RESET" # USER PS1+="$PS1_COLOR_GREY@$PS1_COLOR_RESET" # @ -- cgit v1.2.3