From 132ae721e73ba0478eccea29a282c7316932d6c7 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 28 Mar 2026 11:28:29 -0700 Subject: [PATCH] Add custom PS1 settings. --- bashrc.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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.