Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 6 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.