Automatically exit when ending session in Terminal for macOS
You will get the following
[Process completed] message when exiting the session in
Terminal for macOS and will then have to manually close the
Terminal windows afterwards.
Deleting expired sessions...none found.
Follow these steps to avoid the message and automatically close the
Terminal window or tab when exiting the session:
window from the menu.
Go to the
tab and choose the profile that you want to set this option on.
Basic is the default profile and it's safe to just select it if you can't remember ever changing the profiles settings.
Click on the
tab and find the
When the shell exits
Close if the shell exited cleanly
from the option's select list.
Sign up for Mac OS X Superuser - Use Mac OS X like a Pro and many other great courses on Udemy to learn more.