Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer 1

Open the preferences for Terminal and untick the following flags

enter image description here

If this alone doesn't solve the problem

  • unset PROMPT_COMMAND
  • 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

 
discard

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.