
I was tired of closing the Terminal window, every time after typing exit
. Luckily, there is a way to make Terminal close the window, if the shell exited cleanly.
When you open Terminal, you can change your preferences by going to: Terminal Preferences | Settings | Shell | When the shell exitst to either:
- Close the window
- Close if the shell exited cleanly
- Do not close the window
By default it is set to Do not close the window.
Bonus tip: hit Ctrl + D instead of typing exit
h/t to this question on Super User