Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A shell script to set Terminal window colors per SSH host' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell script to set Terminal window colors per SSH host
Authored by: andriven on Aug 03, '05 01:15:55AM

Any thoughts on modifying to just give a random color for each ssh window/sessions? (out of 10-20 eye-safe colors)

I ssh into a lot of boxes.....so setting up a custom color per box isn't worth it but having different colors (even if randomly) would be very nice (hopefully two ssh sesssion to the same box would get the same color even if in different Terminal windows).



[ Reply to This | # ]
A shell script to set Terminal window colors per SSH host
Authored by: bendybendy on Aug 03, '05 12:24:58PM

I got some thoughts (but no code!)

1- choose the colors based on the host name- say the first 3 consonants.
2- use color values from the top or bottom of the 0-65535 range, to keep the colors subtle and eye safe.

That way, you'd get the same color whenever you went to the same host.



[ Reply to This | # ]