🐛 Fixing commandline layout error
This commit is contained in:
parent
86bbffa59e
commit
08e202dadf
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue