05-04-2015, 02:15 AM
Perhaps we could change some colors
Them adding this to the end
Perhaps white bold would better match the current theme
Code:
leafpad $HOME/.bashrc
Code:
if [ $USER = 'root' ]; then
PS1="\[\033[01;31m\]$USER@$HOSTNAME\[\033[0;00m\] \[\033[01;32m\]\w\\$\[\033[0;00m\] "
else
PS1="\[\033[01;33m\]$USER@$HOSTNAME\[\033[0;00m\] \[\033[01;32m\]\w\\$\[\033[0;00m\] "
fi
Perhaps white bold would better match the current theme
Code:
if [ $USER = 'root' ]; then
#If user is root just print the hostname in yellow
PS1="\[\033[01;33m\]$HOSTNAME\[\033[0;00m\] \[\033[01;32m\]\w\\$\[\033[0;00m\] "
else
PS1="\[\033[01;97m\]$USER@$HOSTNAME\[\033[0;00m\] \[\033[01;32m\]\w\\$\[\033[0;00m\] "
fi