Fix PS1 prompts to use single quotes and remove colors since they are in env-shared.

This commit is contained in:
2026-03-28 12:09:13 -07:00
parent f0a2c39bf8
commit 6d728dd9ad

View File

@@ -10,22 +10,13 @@ fi
# PS1 # PS1
PURPLE=`tput setaf 5` # This helps to determine the color palette numbers:
ORANGE=`tput setaf 214` # https://robotmoon.com/bash-prompt-generator/
GREEN=`tput setaf 2` # Colors are in env-shared.
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 [[ "`whoami`" == "root" ]]; then if [[ "`whoami`" == "root" ]]; then
export PS1="$BOLD$ORANGE[$SCARLET\t $RED\w$ORANGE]$GRAY\\$ $RESET" export PS1='\[$BOLD\]\[$ORANGE\][\[$SCARLET\]\t \[$RED\]\w\[$ORANGE\]]\[$GRAY\]\$ \[$RESET\]'
else else
export PS1="$BOLD$PURPLE[$ORANGE\t $GREEN\w$PURPLE]$RESET\\$ " export PS1='\[$BOLD\]\[$PURPLE\][\[$ORANGE\]\t \[$GREEN\]\w\[$PURPLE\]]\[$RESET\]\$ '
fi fi
## Aliases ## ## Aliases ##