From a64f2253b61af673e363cb345393242d40088f93 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 1 Dec 2025 19:19:06 -0700 Subject: [PATCH] Add colors to PS2. --- tasks/general/acct_mgmt/users.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index d60cd8e..683da38 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -155,6 +155,8 @@ #export PS1='[\t \u@\h \w]\$ ' # 20251201 - Add colors. + # This helps to determine the color palette numbers: + # https://robotmoon.com/bash-prompt-generator/ PURPLE=`tput setaf 5` ORANGE=`tput setaf 214` GREEN=`tput setaf 2` @@ -181,8 +183,10 @@ CLR_DIR=$BOLD$GREEN CLR_PROMPT=$RESET fi + export PS1='\[$CLR_BRACKETS\][\[$CLR_TIME\]\t \[$CLR_USER\]\u@\h \[$CLR_DIR\]\w\[$CLR_BRACKETS\]]\[$CLR_PROMPT\]\$ \[$RESET\]' - export PS2='(>^.^)> ' + + export PS2='\[$CLR_BRACKETS\](\[$CLR_TIME\]>\[$CLR_USER\]^\[$CLR_DIR\].\[$CLR_USER\]^\[$CLR_BRACKETS\])\[$CLR_TIME\]> \[$RESET\]' ## End Prompts ## alias_remount: |