From 7f21a0fc7b0a8f3d61e3c75a81389d2d35a72b7b Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 1 Dec 2025 19:14:04 -0700 Subject: [PATCH] Refactor the prompt colors. --- tasks/general/acct_mgmt/users.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 09f3901..d60cd8e 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -146,6 +146,8 @@ curl "https://wttr.in/${1//\ /+}" } export_PS1: | + ## Prompts ## + # Old Trusty #export PS1='[\u@\h \w]\$ ' @@ -157,14 +159,15 @@ ORANGE=`tput setaf 214` GREEN=`tput setaf 2` - RESET=`tput sgr0` - BOLD=`tput bold` - RED=`tput setaf 9` SCARLET=`tput setaf 1` YELLOW=`tput setaf 226` # 11 does not seem to work + GRAY=`tput setaf 8` + RESET=`tput sgr0` + BOLD=`tput bold` + if [[ "$USER" == "root" || $UID == 0 ]]; then CLR_BRACKETS=$BOLD$YELLOW CLR_TIME=$BOLD$ORANGE @@ -180,6 +183,8 @@ fi export PS1='\[$CLR_BRACKETS\][\[$CLR_TIME\]\t \[$CLR_USER\]\u@\h \[$CLR_DIR\]\w\[$CLR_BRACKETS\]]\[$CLR_PROMPT\]\$ \[$RESET\]' export PS2='(>^.^)> ' + + ## End Prompts ## alias_remount: | alias remount=' sudo umount /mnt/*