To resolve this, I write down a modified script that initial sets a single window name, and then choose the suitable window based on that name. With single script, you can direct as many dissimilar SSH host/color mixture you'd like. Cleanly add custom colors to the folder testimonial where designate, and connection to the script by means of the name of the fresh host you'd like.
Example:
Code:
% cd bin
% ln -s ssh_host foobar
% rehash ## for tcsh shell [or]
% hash -r ## for bash shell
% foobar
To maintain host names short, you can moreover add , or connection with the complete hostname (e.g. ln -s ssh_host foobar.baz.com) and make a shell alias for it. If you put your individual window name with a precmd alias or alike, you might desire to eliminate the last echo which clears the title.
Bookmarks