Refactor the prompt colors.

This commit is contained in:
2025-12-01 19:14:04 -07:00
parent 87aca38811
commit 7f21a0fc7b

View File

@@ -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/*