Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I stop OS X Lion from reopening multiple terminal windows when I relaunch Terminal.app? When I launch terminal, two windows spawn.

share|improve this question
up vote 8 down vote accepted

Enter the following in Terminal:

defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool false

This disables Lion's resume feature for Terminal only.


If you want to disable resuming application "document" windows globally, go to System Preferences » General » Restore windows when quitting and re-opening apps:

enter image description here

share|improve this answer
    
Thanks! I had to use sudo to get this to work. – mohit6up May 31 '13 at 15:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .