Add check in bashrc for root

This commit is contained in:
Tyler Perkins 2023-12-07 10:39:51 -05:00
parent 7cd21f20d7
commit 9aa7a87d05
Signed by: tyler
GPG Key ID: FB77409925BD2C84

View File

@ -101,7 +101,12 @@ if [ $? -eq 0 ]; then
fi fi
if [ "$UID" -eq 0 ]; then
export PS1="\033[1m\e[0;97m[\e[0;32m\u\e[0;97m@\e[0;31m\h \e[0;97m(\D{}) \w]\n# \033[0m"
else
export PS1="\033[1m\e[0;97m[\e[0;32m\u\e[0;97m@\e[0;31m\h \e[0;97m(\D{}) \w]\n$ \033[0m" export PS1="\033[1m\e[0;97m[\e[0;32m\u\e[0;97m@\e[0;31m\h \e[0;97m(\D{}) \w]\n$ \033[0m"
fi
export KUBECONFIG=~/.kube/config export KUBECONFIG=~/.kube/config
export GPG_TTY=$(tty) export GPG_TTY=$(tty)