Mac OS X: How to disable the prompt when closing a Terminal window
by admin on Dec.13, 2014, under MAC OS X
If you ever got tired of the prompt asking you if you’re sure about closing the Terminal window when closing a command prompt, this brief command might help you.
Open up your Terminal and issue the following command:
defaults write com.apple.Terminal DebugConfirmTossingUnsubmittedFormText NO
If you try to close a Terminal window now, it will no longer ask you for confirmation when doing so. 😀