diff --git a/config/includes.chroot/etc/skel/.bashrc b/config/includes.chroot/etc/skel/.bashrc index 389fcd0..6b79035 100644 --- a/config/includes.chroot/etc/skel/.bashrc +++ b/config/includes.chroot/etc/skel/.bashrc @@ -57,7 +57,11 @@ if [ -n "$force_color_prompt" ]; then fi if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + if [ "$(id -u)" -eq 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 else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi