185
58
In iTerm2 (Build 1.0.0.20120203), I typically open several tabs, each of which has split panes , and is about one particular theme of work, for example revision control, coding, managing files, mysql terminal work. I typically need to switch between 5 or more tabs in my work flow. It is sometimes hard to remember or tell which is which by looking at the content of the screen. I'd like to name the tabs somehow, so I can quickly tell which is which by quickly glancing. Is this possible?
1
possible duplicate of Change iTerm2 window and tab titles in zsh
– Daniel Beck – 2012-05-02T19:11:29.753Not entirely duplicate. So how to add the currently running app as a part of tab title? I.e. which tab is running emacs, mysql, etc.? – qazwsx – 2012-05-02T19:16:53.980
1I.e. all my tabs have same host and user. So using those won't differentiate my tabs. – qazwsx – 2012-05-02T19:27:57.210
You mean you want Show current job name from iTerm's preferences? Note that the linked topic isn't about username or host. – Daniel Beck – 2012-05-02T19:31:10.180
Right, I want to show some indication of what program is running or was run in each tabs. Also, the solution given in the other post doesn't work for Bash + iTerm2. – qazwsx – 2012-05-02T20:08:07.690
It does if you replace
\e
by\033
. Also, you never indicated in your question what shell you are using. – Daniel Beck – 2012-05-02T20:25:04.840After issuing
$ echo -ne "\033]1;this is the title\a"
my tab title readsuser@host:~
just like before. I've unchecked everything under Preferences -> Appearance -> Window and Tab Titles. – qazwsx – 2012-05-02T20:30:25.993Is this the issue? http://superuser.com/questions/343747/how-do-i-stop-automatic-changing-of-iterm-tab-titles/356088#356088
– Daniel Beck – 2012-05-02T20:31:57.017Possibly, I have non-empty output for
$ echo $PROMPT_COMMAND
. – qazwsx – 2012-05-02T20:34:36.050