🐛 Fixing commandline layout error

This commit is contained in:
Geoff Murphy 2025-05-13 16:22:15 +10:00
parent 86bbffa59e
commit 08e202dadf

View file

@ -28,10 +28,11 @@ 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 \$ " #PS1="\[${FCOL0}\]\[[${FCOL3}\]\u\[${FCOL0}\]@\[${FCOL3}\]\h\[${FCOL0}\]] \W \$ " # non-root
PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " # root
else else
PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " PS1="\[${FCOL0}\]\[[${FCOL1}\]\u\[${FCOL0}\]@\[${FCOL1}\]\h\[${FCOL0}\]] \W \$ " # root
fi fi