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.
Saving session...completed. Deleting expired sessions...none found. [Process completed]
You can avoid the message and automatically close the
Terminal window or tab when exiting the session by configuring
Preferenceswindow from the menu.
Profilestab 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.
Shelltab and find the
When the shell exitsoption.
Close if the shell exited cleanlyfrom the option's select list.
Comment anonymously. Login not required.