MacOS – How to set a fixed title for a terminal in Mac

command linemacosterminal

I am working a lot with terminals in a Mac with OS 10.13.6 and I want to set a title of a terminal (I have several terminal tabs open).

I know that I can select the tab, go to Shell -> Edit Title and set the title of the terminal.

However, when I – for example – run a command, login to some other computer etc. – that title is always overwritten.

How can I have a FIXED title for a Terminal Tab FOR ALL TIMES (except I turn off/reboot the laptop)?

Complete example so that my question is REALLY understood:

  1. I open a terminal in the Mac
  2. In the manu of the Terminal I select Shell -> Edit Title and change the title: enter image description here
  3. The title of the tab is like I want it: enter image description here
  4. In that terminal I start ipython (AS AN EXAMPLE!!!).
  5. The title has been changed. This NOT what I want! enter image description here
  6. I still want the title to be 'Test Title'.

Best Answer

  1. Open the Preferences for terminal app
  2. Select the profile in use
  3. Select "tab" pane on the right
  4. Uncheck everything except Show activity indicator

terminal settings to prevent bash and shell escape sequences from showing in terminal tabs and title area

Repeat the above for Window title if you want that to change in addition to the tab title. Now, you will only get the defaults when you make new tabs/windows and your manual changes will persist and not reflect the variables that endeavor to provide status each time the command line prompt is regenerated.

Window preferences in terminal.app on macOS Mojave dark mode