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 would like to change the entire title of the terminal window for a particular bash script. I googled out but I couldn't find much more than this suggestion:

printf "\e]0;My Custom Title\a"

After running the line above, my terminal window's title becomes so:

ft1 — My Custom Title — bash — 80×24

But I would like it to become just like this:

My Custom Title

Any ideas?

share|improve this question

Open the preferences for Terminal and untick the following flags

enter image description here

If this alone doesn't solve the problem

  • check whether PS1 (the prompt string) changes the window title as well
share|improve this answer
Actually I was looking for something that only affects the terminal that is running the script, not the global settings. Thanks anyway for your help. – GOTO 0 Aug 5 '12 at 16:29
You can create a new profile and assign this to the terminal tab/window in question. – patrix Aug 5 '12 at 17:15

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.