From f40fa533a61723d253a48cc38b3d4619c1b2cbc2 Mon Sep 17 00:00:00 2001 From: Geoff Murphy Date: Tue, 13 May 2025 17:25:02 +1000 Subject: [PATCH] :bug: Fixed shell colour for non-root users --- src/fake_shell.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fake_shell.sh b/src/fake_shell.sh index b2b4972..d452a15 100644 --- a/src/fake_shell.sh +++ b/src/fake_shell.sh @@ -28,11 +28,10 @@ FCOLITAL="\e[2;3m" #--------[ CLI Prompt ]--------# -if [ "$(whoami)" != "root" ]; then - #PS1="\[${FCOL0}\]\[[${FCOL3}\]\u\[${FCOL0}\]@\[${FCOL3}\]\h\[${FCOL0}\]] \W \$ " # non-root +if [ "$(whoami)" == "root" ]; then PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " # root else - PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " # root + PS1="\[${FCOL0}\]\[[${FCOL3}\]\u\[${FCOL0}\]@\[${FCOL3}\]\h\[${FCOL0}\]] \W \$ " # non-root fi