Public bug reported:

The default .bashrc doesn't enable the color prompt, even though `ls 
--color=yes` shows colors. The following code is in the default .bashrc:
case "$TERM" in
xterm-color)
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;[EMAIL 
PROTECTED]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ;;
*)
    PS1='${debian_chroot:+($debian_chroot)[EMAIL PROTECTED]:\w\$ '
    ;;
esac

I propose to change this to the following:
if [ $COLORTERM -o "$TERM" == 'xterm-color' ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;[EMAIL 
PROTECTED]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)[EMAIL PROTECTED]:\w\$ '
fi

** Affects: gnome-terminal (Ubuntu)
     Importance: Undecided
         Status: New

-- 
No color prompt in color capable terminal
https://bugs.launchpad.net/bugs/156195
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug contact for gnome-terminal in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to