On a clean install of Ubuntu 12.10, the default gnome-terminal is reporting $TERM to be xterm where it should really be reporting xterm-256color. What is the best way of changing this? I'm avoiding putting this in my .bashrc as that's just asking for trouble.
For connecting with a terminal that's not able to do 256 colors.
It'd be far better to detect the terminal specifically with
I do it with:
You were well advised not to change your startup scripts, specially
Gnome terminal, AFAIK, does not offer a configuration to change its
Then use the following command:
While it's true that terminfo has xterm+256color (
What you have to do is to place the following piece of code in your