Command to close terminal window
When I want to close a window I type exit
:
mbp-thomas in ~
○ → exit
logout
[Opération terminée]
Then cmd + w to close the window.
Is there a way to do it with a little script like if I type quit
it exit the session then close the window ?
Solution 1:
Open Terminal.
-
Go to Terminal → Preferences….
Select the Settings tab, then your profile, and choose the Shell tab.
-
Set When the shell exits to Close if the shell exited cleanly.