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


Click here to return to the 'Display latest jobs in Terminal titles (revisited)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display latest jobs in Terminal titles (revisited)
Authored by: foon on Jul 02, '07 10:08:53AM

This is cool. Is there a simple way to have this happen only on a local terminal? That is, I often ssh to other machines, and in that case I'd like the "ssh other.machine.com" to remain the title, but if I'm working locally I want the normal behavior. I'd hope some sort of tty juju could figure this out...



[ Reply to This | # ]
Display latest jobs in Terminal titles (revisited)
Authored by: foon on Jul 02, '07 10:33:24AM
if [[ ! `printenv SSH_CONNECTION` ]]; then trap 'printf "33]0; `history 1 | cut -b8-` 07"' DEBUG; fi

[ Reply to This | # ]