Comment 4 for bug 350854

Revision history for this message
Estanislao (estanislao-gonzalez-r) wrote :

This is a feature I've been looking after for a while now. The idea is to have some visual clue on the console regarding on which host one is working.
I do use the prompt for that, but as soon as you have a tool open (e.g. vim) then there it goes your clue :-/
And setting it form the client side is not enough since ssh into a new host should alter it...

The most simple solution I could think of is to use a regular expression for parsing the prompt and matching that rule to a predefine set of colors. As long as you can identify the host from your prompt, that should do it.
Not sure if it's easy to identify the prompt from the client side though...