Fix PS1 prompts to use single quotes and remove colors since they are in env-shared.
This commit is contained in:
19
bashrc.sh
19
bashrc.sh
@@ -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 ##
|
||||||
|
|||||||
Reference in New Issue
Block a user