Add check in bashrc for root
This commit is contained in:
parent
7cd21f20d7
commit
9aa7a87d05
5
.bashrc
5
.bashrc
@ -101,7 +101,12 @@ if [ $? -eq 0 ]; then
|
||||
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"
|
||||
fi
|
||||
|
||||
export KUBECONFIG=~/.kube/config
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user