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


Click here to return to the '10.5: Show remote host names as tab titles in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Show remote host names as tab titles in Terminal
Authored by: einsturz on Nov 12, '07 08:50:29AM
Actually, Terminal accepts the old xterm escape codes for updating a title bar. Here's some good info on it:

http://www.trilug.org/~chilcote/Unix/titlebar.html

Basically, doing something like this:

echo "<ctrl-v><esc>]1;$(hostname)<ctrl-esc><ctrl-g>"

Will put the current hostname in the title bar. You could create some aliases to manipulate that before and after ssh is called.

[ Reply to This | # ]
10.5: Show remote host names as tab titles in Terminal
Authored by: einsturz on Nov 12, '07 08:53:06AM

Oh, scratch that. I just realized it updates the window title but not the tab titles.



[ Reply to This | # ]