.bashrc color_prompt check only works for xterm-color, not xterm-256color
Bug #1876513 reported by
Yannik
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
base-files (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The `share/dot.bashrc` file checks like this whether to enable `color_prompt`:
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
Nowaways, most terminals support 256 colors (instead of 8 like xterm-color). Their $TERM will usually be something like `xterm-256color`.
Accordingly, this check was modified in the `skel`-package `/etc/skel/.bashrc` like this:
case "$TERM" in
xterm-
esac
I would suggest the same modification be done in the base-files .bashrc.
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.