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.
While it's true that terminfo has xterm+256color (
What you have to do is to place the following piece of code in your
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: