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?
~/Library/Preferences/com.apple.Terminal.plist
(note that you'll lose your custom settings). As a workaround you can always quit Terminal with ⌘Q instead of closing the last tab.