🐛 Fixed shell colour for non-root users

This commit is contained in:
Geoff Murphy 2025-05-13 17:25:02 +10:00
parent 08e202dadf
commit f40fa533a6

View file

@ -28,11 +28,10 @@ FCOLITAL="\e[2;3m"
#--------[ CLI Prompt ]--------# #--------[ CLI Prompt ]--------#
if [ "$(whoami)" != "root" ]; then 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 PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " # root
else else
PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " # root PS1="\[${FCOL0}\]\[[${FCOL3}\]\u\[${FCOL0}\]@\[${FCOL3}\]\h\[${FCOL0}\]] \W \$ " # non-root
fi fi