1

Just moved over to ubuntu land from fedora (wanted try the budgie build). I'm fed land I had a script (from Fedy - posted below.) that changed my prompt to red when I logged into the root shell with sudo -s, this doesn't appear to work in Ubuntu even though I have the following the /etc/sudoers file:

Defaults        env_reset

Could one of you kind folks point out what is blocking or overwriting the export PS1?

Output of cat /etc/profile.d/color_prompt.sh:

# Colors in Terminal (Bash)
if [[ ! -z \$BASH ]]; then
    if [[ \$EUID -eq 0 ]]; then
        PS1="\[\033[33m\][\[\033[m\]\[\033[31m\]\u@\h\[\033[m\] \[\033[33m\]\W\[\033[m\]\[\033[33m\]]\[\033[m\] # "
    else
        PS1="\[\033[36m\][\[\033[m\]\[\033[34m\]\u@\h\[\033[m\] \[\033[32m\]\W\[\033[m\]\[\033[36m\]]\[\033[m\] \$ "
    fi
fi
the_frank
  • 11
  • 1

0 Answers0