From 05e2d12c899f56ee65dc53b791a3fe64ec719b61 Mon Sep 17 00:00:00 2001 From: toto <> Date: Mon, 28 Nov 2022 10:01:24 +0100 Subject: [PATCH] PS1 root in .bashrc --- config/includes.chroot/etc/skel/.bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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