diff --git a/mybashrc b/mybashrc index c1a3a5a..09f4315 100644 --- a/mybashrc +++ b/mybashrc @@ -1,7 +1,12 @@ #!/bin/bash # FUNCTIONS -force_color_prompt=yes +if [ "$(id -u)" = "0" ]; then + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +else + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +fi + if [ "$(id -u)" != "0" ]; then IS_SUDOERS=$(groups | grep sudo)