LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can I set ssh to change my konsole colours when I connect to a remote box? (https://www.linuxquestions.org/questions/linux-general-1/can-i-set-ssh-to-change-my-konsole-colours-when-i-connect-to-a-remote-box-267071/)

davee 12-16-2004 11:07 AM

Can I set ssh to change my konsole colours when I connect to a remote box?
 
I've usually got many sessions open at once - is there any way I can do this to remind myself I'm on a remote box?

Dave

Tinkster 12-16-2004 02:34 PM

Not that I'm aware of ... what I do is the following:
(doing all this in X that is)...

rxvt -cr green -title "MarvinSSH" -sl 6000 +ls -e ssh 192.168.1.25


The bold bit gives a green cursor .. :)


Cheers,
Tink

cjcox 12-16-2004 02:56 PM

Usually this is done by altering your prompt.

You could change the machines profile to do a tput setaf 1 (or 2 or 3 or 4 etc) to change the foreground color, but it won't last across execution of certain commands (e.g. a color ls will probably reset things back to some default color).


All times are GMT -5. The time now is 10:58 AM.