From 45f2126980e54719c8ba0c8481c45e4a2aefcef0 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Fri, 31 Mar 2023 02:12:23 -0400 Subject: Refactor 'PS1' prompt in 'home/.bashrc' Made the 'PS1' prompt a bit shorter and easier to read. It now more closely reflects what the prompt actually looks like. --- home/.bashrc | 37 +++++++++---------------------------- 1 file changed, 9 insertions(+), 28 deletions(-) (limited to 'home') diff --git a/home/.bashrc b/home/.bashrc index bc962d1..946c3ef 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -50,39 +50,20 @@ PS1+=$PS1_COLOR_RESET PS1+=$PS1_COLOR_MAIN if [[ "$SSH_TTY" == "/dev/pts"* ]]; then # if this is SSH session PS1+="[SSH " # add "[SSH " -else - PS1+="[" +else # if not + PS1+="[" # don't fi PS1+=$PS1_COLOR_RESET -PS1+=$PS1_COLOR_CYAN -PS1+="\u" -PS1+=$PS1_COLOR_RESET - -PS1+=$PS1_COLOR_GREY -PS1+="@" -PS1+=$PS1_COLOR_RESET - -PS1+=$PS1_COLOR_BLUE -PS1+="\h" -PS1+=$PS1_COLOR_RESET - -PS1+=$PS1_COLOR_MAIN -PS1+="] " -PS1+=$PS1_COLOR_RESET +PS1+="$PS1_COLOR_CYAN\u$PS1_COLOR_RESET" # USER +PS1+="$PS1_COLOR_GREY@$PS1_COLOR_RESET" # @ +PS1+="$PS1_COLOR_BLUE\h$PS1_COLOR_RESET" # HOST +PS1+="$PS1_COLOR_MAIN] $PS1_COLOR_RESET" # ] # [DIR] > -PS1+=$PS1_COLOR_MAIN -PS1+="[" -PS1+=$PS1_COLOR_RESET - -PS1+=$PS1_COLOR_CYAN -PS1+="\w" -PS1+=$PS1_COLOR_RESET - -PS1+=$PS1_COLOR_MAIN -PS1+="] >" -PS1+=$PS1_COLOR_RESET +PS1+="$PS1_COLOR_MAIN[$PS1_COLOR_RESET" # [ +PS1+="$PS1_COLOR_CYAN\w$PS1_COLOR_RESET" # DIR +PS1+="$PS1_COLOR_MAIN] > $PS1_COLOR_RESET" # ] > ########################################################################## -- cgit v1.2.3