I want to set the terminal tab name from the command line. I am using this command to update the name echo -en "\033]0; New Name \007". Here is what my terminal now looks like.

New Name with other stuff

When I use the Inspector through GUI, I have the ability to set the terminal name and the tab name. When I set it via the GUI, here is what I see.

New Name alone

As you can see there isn't any dashes - or text on the tab. How do I do this from the command line?

  • I don’t see a pure duplicate, but maybe check this or that. Also, what precisely do you want to show since you passed a string without dashes I’m not sure where you want the dashes to show. – bmike Jul 17 at 17:23
  • In terminal.app go to preferences > profiles. You can set the options there. – Steve Chambers Jul 17 at 19:01
  • I am trying to do this all programmatically. I don't want to use the GUI. – jhamm Jul 18 at 2:27
  • I just want to add a title to the tab and nothing else. Then I can see exactly what I am doing on that tab. The dashes are other stuff are just noise and get in the way. – jhamm Jul 18 at 2:28

You must log in to answer this question.

Browse other questions tagged .