Timeline for How to stop terminal from re-opening old windows at launch?
Current License: CC BY-SA 4.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 10, 2021 at 19:45 | comment | added | JVC | Looks to be invalid syntax, gave me a man page. (it did not exist so I tried to write it) | |
Sep 10, 2021 at 18:56 | comment | added | hmedia1 |
@JVC If it's not 0 or doesn't exist, try defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool 0
|
|
Sep 10, 2021 at 18:55 | comment | added | hmedia1 |
@JVC What's the value of this defaults read com.apple.Terminal NSQuitAlwaysKeepsWindows
|
|
Sep 10, 2021 at 18:10 | comment | added | JVC | Also to be clear, the saved state folder is in fact still empty, so the lock worked. It just didn't change anything. | |
Sep 10, 2021 at 18:02 | comment | added | JVC | Unfortunately this did not work. On reboot, the old window was once again still present behind the newly created one. | |
Sep 10, 2021 at 16:13 | comment | added | JVC | Ahhh ok, now I think I follow. So this is locking the "hidden" folder where the application window state is stored, for just Terminal in specific. Nice... I will give this a spin! | |
Sep 10, 2021 at 15:51 | history | edited | hmedia1 | CC BY-SA 4.0 |
added 4 characters in body
|
Sep 10, 2021 at 15:51 | comment | added | hmedia1 |
@JVC Alternatively, Open up Finder. ⌘⇧G and type ~/Library/Saved Application State/com.apple.Terminal.savedState - delete the contents, right click -> Get Info -> tick the locked box
|
|
Sep 10, 2021 at 15:40 | history | edited | hmedia1 | CC BY-SA 4.0 |
added 492 characters in body
|
Sep 10, 2021 at 15:37 | comment | added | hmedia1 | @JVC I'll write explanatory comments.. | |
Sep 10, 2021 at 15:36 | comment | added | JVC | No I understand how to use it. I don't understand what it does, and I don't generally like executing code I completely don't understand the function/purpose of. | |
Sep 10, 2021 at 15:36 | comment | added | hmedia1 | @JVC open up Terminal and paste the whole block in there and press Enter | |
Sep 10, 2021 at 15:35 | history | edited | hmedia1 | CC BY-SA 4.0 |
added 9 characters in body
|
Sep 10, 2021 at 15:34 | comment | added | JVC | Wow... I completely don't understand that. Feels a bit heavy-handed... =/ | |
S Sep 10, 2021 at 15:26 | review | First answers | |||
Sep 10, 2021 at 16:04 | |||||
S Sep 10, 2021 at 15:26 | history | answered | hmedia1 | CC BY-SA 4.0 |