Add custom PS1 settings.

This commit is contained in:
2026-03-28 11:28:29 -07:00
parent d25e94d267
commit 132ae721e7

View File

@@ -1,11 +1,33 @@
# 2024-02-10 Hyperling # 2024-02-10 Hyperling
## Environment Setup ##
export PATH="~/bin:$PATH" export PATH="~/bin:$PATH"
if [[ -e ~/.env ]]; then if [[ -e ~/.env ]]; then
source ~/.env source ~/.env
fi 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 ## ## Aliases ##
# Quickly log onto production server. # Quickly log onto production server.