Change Profiles Tab preferences in Terminal on Mac
Use Tab preferences in Terminal to specify the information that appears in the title of tabs for a Terminal window profile.
To change these preferences in the Terminal app on your Mac, choose Terminal > Preferences, click Profiles, select a profile, then click Tab.
Note: The options you choose in this preference pane apply only to the profile you select. They don’t apply to the Terminal app in general.
Select information to display in the title for a tab.