fix: root PS1 missing username + color
This commit is contained in:
3
.bashrc
3
.bashrc
@@ -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\]]\#\$ '
|
||||
|
||||
Reference in New Issue
Block a user