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


Click here to return to the 'Solved in 10.6: no need for workarounds' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Solved in 10.6: no need for workarounds
Authored by: krpan on Nov 12, '09 11:32:34AM
To be precise it is the command:

/bin/echo -ne "\033]0;WHATEVER_YOU_WANT_IN_YOUR_TAB_TITLE\007"

that sets the tab title! Of course you should replace WHATEVER_YOU_WANT_IN_YOUR_TAB_TITLE with what you actually want displayed in the title. The above command can then be used in places like PROMPT_COMMAND environment variable under bash or alias 'precmd' under tcsh, etc.

Another important note, if you do not have GNU echo (and OS X does not!) you must replace the above command with:

echo -n "^[]0;WHATEVER_YOU_WANT_IN_YOUR_TAB_TITLE^G"

where ^[ and ^G are actual control characters for ESCAPE and BEL respectively.

[ Reply to This | # ]