fix: root PS1 missing username + color

This commit is contained in:
2026-05-09 23:10:10 +02:00
parent f064cf9f8e
commit d5219b142a

View File

@@ -80,7 +80,8 @@ if ${use_color} ; then
fi
if [[ ${EUID} == 0 ]] ; then
PS1='[\[\033[01;31m\]\h\[\033[01;36m\] \W\[\033[01;31m\]]\[\033[00m\]]\#\$ '
#PS1='[\[\033[01;31m\]\h\[\033[01;36m\] \W\[\033[01;31m\]]\[\033[00m\]]\#\$ '
PS1='[\[\e[37m\]root\[\e[0m\]@\[\033[01;31m\]\h\[\033[01;36m\] \W\[\033[01;31m\]]\[\033[00m\]]\#\$ '
else
#PS1='[\[\033[01;32m\]\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\[\033[00m\]]\#\$ '
PS1='[\[\e[33m\]\u\[\e[0m\]@\[\e[32m\]\h \[\e[1m\]\W\[\e[0m\]]\#\$ '