mikeh123
May 2nd, 2008, 04:57 AM
hi,
just a small thing, i want to be able to set the foreground colour of a terminal to red when ssh ing to other machines (just as a warning to myself not to muck about too much).
setterm -term linux -foreground red
works for the next command, but then reverts immediately back to the default profile. anyone know how to make this stick so it lasts for the session, so i can ssh in, set the color, then when exit, reverts back ? i don't want to change the .bashrc or .bash_profile on other machines on the network just for this.
this does what i want, but of course in a new xterm window.
xterm -fg red -e ssh peters@168.192.2.50 &
cheers,
mike.
just a small thing, i want to be able to set the foreground colour of a terminal to red when ssh ing to other machines (just as a warning to myself not to muck about too much).
setterm -term linux -foreground red
works for the next command, but then reverts immediately back to the default profile. anyone know how to make this stick so it lasts for the session, so i can ssh in, set the color, then when exit, reverts back ? i don't want to change the .bashrc or .bash_profile on other machines on the network just for this.
this does what i want, but of course in a new xterm window.
xterm -fg red -e ssh peters@168.192.2.50 &
cheers,
mike.