When I want to close a window I type
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 ?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
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.
You could also simply quit Terminal by using Cmd+Q