So you want to change terminal colors and resetting them back on exit? It's possible!
Thanks to .ssh/config, alias and setterm.
colorsgnomesshterminal
So you want to change terminal colors and resetting them back on exit? It's possible!
Thanks to .ssh/config, alias and setterm.
Best Answer
.bash_aliases
/etc/ssh/ssh_config
.ssh/config
Now you can in bash:
NOTE If
-clear rest
gives you an errorsetterm: argument error: 'rest'
- try-clear reset
instead.Alternative to
setterm
If you are using gnome-terminal or another xterm and are frustrated by
setterm
's limited color choices, and/or yoursetterm
changes are being overridden by color codes in your command prompt ($PS1
), you may wish to usextermcontrol
instead ofsetterm
above, as demonstrated in this answer.For example,
xtermcontrol --bg '#600'
will make the terminal background a dark red. You may need to installxtermcontrol
before using it, e.g.sudo apt install xtermcontrol
on Debian-based systems.