Macos – Terminal.app opens different theme when launching a new shell window

macosterminal.app

So I set Terminal.app to open up with certain defaults. I like a specific theme (Homebrew) with a default size of 140×50.

However if I click the close icon (red X) to close the window and then go to open up another shell (Terminal), the shell settings go back to the default black text on a white background.

I noticed an oddity that seems to be related to it: The dock icon of Terminal indicates that after I closed the terminal window, Terminal is still running (even though the shell has been closed).

If I right click on the dock Terminal icon and exit, the dot goes away, indicating that in fact the instance is now no longer running. Now, when I open a new instance I get my correct settings.

What am I missing here? It seems as though when my terminal is closing it isn't really closing right. How can I fix this so it closes right and the actual instance is closed when typing exit from the shell or when I click on the red X?

Best Answer

You have set the “On startup, open:” preference in

Preferences > General

which only selects the profile for the new window automatically created when opening Terminal with no other windows restored.

Instead, set the default profile in

Preferences > Profiles

which applies to terminal windows you create after Terminal is open.

Note that when the startup-window profile is the same as the default profile, changing the default will affect the startup-window profile as well. If you change the startup-window profile to something else it will remain as-is if you later change the default profile.

Related Question