Colorize remote connection windows

Feb 13, '03 10:16:50AM

Contributed by: the_shrubber

Are you sprawled out across different computers? Do you su from time to time? If you are an even occasional user of ssh (rsh, etc), you can decrease your chances of confusion by having these commands run themselves in specific colors.

For example, if you're connected to sourceforge.net, your terminal could be in green, whereas if you connect to your mac.com address, as in a previous hint, it'd be amber. Whenever you do an su, it could be red to keep you alert. You'll want to do the following:

  1. Download the colorssh scripts [4K download]

  2. In the terminal, type:
     % mkdir ~/scripts
    % cd ~/scripts
    % tar -xzvf colorssh_2003-02-10.tgz
  3. Append the stuff from ~/scripts/colorssh/aliases.mine to your tcsh configuration (revise accordingly for bash)

  4. Edit ~/scripts/colorssh/servercolors.sh to suit your taste (pretty self-explanatory, i think)
That's it! Try it out:
 % ssh someserver.blah.com
% su
% etc...
[Editor's note: I haven't had a chance to try this one out yet, but I will as I often find myself forgetting which remote window is which!]

Comments (7)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030213071650891