News for hackers. Stuff that matters.
Re:ITerm2 2.0 by interpol_p on Tuesday July 15, 2014 @06:24AM (#8035641)
You can disable it system wide. But it also works on a per-app basis: if you don't want the UI state restored, then just quit the app with Cmd+Option+Q (instead of the regular Cmd+Q) and OS X will not save the application state.
Re:ITerm2 2.0 by nnnnni on Tuesday July 15, 2014 @06:29AM (#8035657)
I wish that there would have been a setting in the program options ("Preferences"... I don't know why, but that word annoys me in this context) so that the user wouldn't always have to do cmd-opt-q. Maybe the best option would be to have a checkbox that swaps the behavior ("don't save the output unless I press cmd-opt-q").

THANKS for letting us know about cmd-opt-q! I'll have to start using that all the time since it does seem like a potential security hole.

Re:ITerm2 2.0 by interpol_p on Tuesday July 15, 2014 @06:58AM (#8035731)
You can disable window restoration system wide (System Preferences -> General -> "Close windows when quitting an app").

So you don't have to use the shortcut at all in that case.

Personally I prefer getting used to using it on a case-by-case basis. For example, when I leave work I tend to quit most apps on my laptop with Cmd+Option+Q, so that when I get home they don't re-open with work and I can start working on personal projects.

Re:ITerm2 2.0 by nnnnni on Tuesday July 15, 2014 @10:30AM (#8036609)
I don't want to disable it system-wide -- just for the terminal!

I'll just have to get used to cmd-opt-q.

Re:ITerm2 2.0 by redacted on Tuesday July 15, 2014 @08:21PM (#8039939)

  defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool false
or something similar ought to do the trick