The TERM environment variable defaults to xterm so the .bashrc file does not provide full color in the shell by default.
How to I change the TERM environment variable to xterm-color for the gnome terminal emulator app only?
Update: By full color I mean changes the command prompt to use color in addition to displaying output such as directory listing in color too.
Best Answer
For
gnome-terminal
Edit the profile settings in
gnome-termninal
:Replace
/bin/bash
with your shell command and use your parameter forTERM
.You can also edit the entries with
dconf
. Open a terminal and startdconf-editor
:Open the entry
org/gnome/terminal/legacy/profiles:
and select your profile. Change the value forcustom-command
.