diff --git a/bashrc.sh b/bashrc.sh index dc6a117..4eda2ee 100644 --- a/bashrc.sh +++ b/bashrc.sh @@ -1,11 +1,33 @@ # 2024-02-10 Hyperling +## Environment Setup ## + export PATH="~/bin:$PATH" if [[ -e ~/.env ]]; then source ~/.env 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` +if [[ "`whoami`" == "root" ]]; then + export PS1="$BOLD$ORANGE[$SCARLET\t $RED\w$ORANGE]$GRAY\\$ $RESET" +else + export PS1="$BOLD$PURPLE[$ORANGE\t $GREEN\w$PURPLE]$RESET\\$ " +fi + ## Aliases ## # Quickly log onto production server.