From 9aa7a87d056b3672d727c56f7404d3df93a272cc Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Thu, 7 Dec 2023 10:39:51 -0500 Subject: [PATCH] Add check in bashrc for root --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 732d329..b5bfdd7 100644 --- a/.bashrc +++ b/.bashrc @@ -101,7 +101,12 @@ if [ $? -eq 0 ]; then fi -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" +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" +fi + export KUBECONFIG=~/.kube/config export GPG_TTY=$(tty)