Change iTerm2 tab title dynamically for Ruby/Rails

Viewed 2875

I am using iTerm2 and usually have many tabs open. Unfortunately all tabs show me the same title "ruby" as it is all ruby scripts.

But one is rails server, the other rails console, the next is "spork", ... I would like to set the tab titles dynamically to "server", "console" or something similar as long as the processes are running and back to the default ("bash") when they are finished.

Anybody knows how to do this?

Thanks.

2 Answers
Related