Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to be able to set the titles on my tabs to short, easy-to-remember things, since I often have a few open. You can use Command-I and set the Title that way, but OSX appends the name of the currently running process to that title, (e.g. "test title -- bash").

Is there any way to set the full text of the tab title?

This is on OSX 10.6. There used to be a way to do this on 10.5 using SIMBL, but that no longer works.

share|improve this question
up vote 3 down vote accepted

In Preferences choose the windows tab for your set of settings. There is an option Active process name - if this is not ticked then you should not see the command in the title bar.

share|improve this answer

I turned off, 'show active process' in preferences. Along with all the other trivia. I want different trivia.

As an example, I have the following two lines in my .bash_profile in my home directory. (.bash_profile gets executed in every new tab/window)

PROMPT_COMMAND='echo -n -e "\033]0;`basename $PWD`\007"'
function vi { echo -n -e "\033]0;vi $1\007" ; vim $1 ;}

The first command sets the tab to the last directory in my current bath. e.g. if I'm in ~sherwood/foo/bar this will be bar

The second one in effect turns vi (my editor of choice) into a pair of commands that does the same sort of echo, but now it sets the tab to show that I'm editing this file. So if I'm editing ~sherwood/foo/bar/baz, it will show vi baz

Note that it will show whatever you told vi. So if you type vi /some/long/path/to/a/../../name that's what the tab will show, or at least as much of it as will fit.

At this time I have not found a way to set the title bar differently from the tab.

share|improve this answer
Oh, I am not very good at bash. Can you, please, tell how to title current tab with current directory where I stay? – gaussblurinc Jun 19 '13 at 10:43

You could install xtermcontrol (also via fink, macports, etc.), and then use that to set the title to whatever you want. I have the following cd in my .bash_profile, so that any time I change directories the directory is in the xterm window title:

cd() {
  if [ -n "$1" ]; then
    builtin cd "$@"; xtermcontrol --title "$@"
    builtin cd ~;  xtermcontrol --title "~"

You can also set up aliases or customize your ssh settings so that hostnames are added to the title when you leave this host, etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.