From 08e202dadf4a66faec4898324d1f77b7053a1c47 Mon Sep 17 00:00:00 2001 From: Geoff Murphy Date: Tue, 13 May 2025 16:22:15 +1000 Subject: [PATCH] :bug: Fixing commandline layout error --- src/fake_shell.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fake_shell.sh b/src/fake_shell.sh index da6ac8d..b2b4972 100644 --- a/src/fake_shell.sh +++ b/src/fake_shell.sh @@ -28,10 +28,11 @@ FCOLITAL="\e[2;3m" #--------[ CLI Prompt ]--------# -if [ $(whoami) != "root" ]; then - PS1="\[${FCOL0}\]\[[${FCOL3}\]\u\[${FCOL0}\]@\[${FCOL3}\]\h\[${FCOL0}\]] \W \$ " +if [ "$(whoami)" != "root" ]; then + #PS1="\[${FCOL0}\]\[[${FCOL3}\]\u\[${FCOL0}\]@\[${FCOL3}\]\h\[${FCOL0}\]] \W \$ " # non-root + PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " # root else - PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " + PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " # root fi