🐛 Fixed shell colour for non-root users
This commit is contained in:
parent
08e202dadf
commit
f40fa533a6
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue