diff --git a/bashrc b/bashrc index c17dd77f..09d06cb2 100644 --- a/bashrc +++ b/bashrc @@ -67,6 +67,13 @@ else fi unset color_prompt force_color_prompt +# check if we're root +if [[ $EUID == 0 ]]; then + PS1='\033[1;31m\u@\h:\w\$\033[0m ' +else + PS1='\033[1;32m\u@\h:\w\$\033[0m ' +fi + # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*)