Any chance it is possible to accomplish on Ubuntu?
Host someproductionbox
LocalCommand xtermcontrol --bg=red
Host sometestbox
LocalCommand xtermcontrol --bg=blueThere's no way to change profile from the command line using gnome-terminal, unfortunately, but there is "roxterm" which is very similar in functionality and lets you do the following to change the color scheme of the current terminal window:
dbus-send --session /net/sf/roxterm/Options net.sf.roxterm.Options.SetColourScheme string:$ROXTERM_ID "string:NAME_OF_COLOR_SCHEME"Uncomment 'force_color_prompt=yes' Edit the line following if color_prompt is yes. By default it's green (1;32m). Red is 0;31m.
Make sure to make a copy of the .bashrc file before starting.
function settitle {
echo -en "\e]0; $* \a"
}
function ssh {
settitle ssh $*
echo /usr/bin/ssh $*
/usr/bin/ssh $*
}
function sftp {
settitle sftp $*
echo /usr/bin/ssh $*
/usr/bin/sftp $*
}
No, it's not bright and colorful, but it does a good job of telling me where the gnome-terminal I'm using is connected to.