No color prompt in color capable terminal
Bug #156195 reported by
Victor Engmark
This bug report is a duplicate of:
Bug #103929: Bash prompt string looks for xterm-color, gnome terminal identifies as xterm.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
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=
;;
*)
PS1=
;;
esac
I propose to change this to the following:
if [ $COLORTERM -o "$TERM" == 'xterm-color' ]; then
PS1=
else
PS1=
fi
To post a comment you must log in.
hmm, maybe a matter of taste; I don't like colored prompts ;-)