diff --git a/bashrc.sh b/bashrc.sh index 4eda2ee..5d20047 100644 --- a/bashrc.sh +++ b/bashrc.sh @@ -10,22 +10,13 @@ fi # PS1 -PURPLE=`tput setaf 5` -ORANGE=`tput setaf 214` -GREEN=`tput setaf 2` - -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` +# This helps to determine the color palette numbers: +# https://robotmoon.com/bash-prompt-generator/ +# Colors are in env-shared. 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 - export PS1="$BOLD$PURPLE[$ORANGE\t $GREEN\w$PURPLE]$RESET\\$ " + export PS1='\[$BOLD\]\[$PURPLE\][\[$ORANGE\]\t \[$GREEN\]\w\[$PURPLE\]]\[$RESET\]\$ ' fi ## Aliases ##