Terminal Keeps Restoring

My Terminal app keeps starting with a recovery of old commands in the BASH history. It had a large amount of commands and terminal output that should not be seen (configuration of devices). I was able to clear most of the text by issuing "history -c" and after that the terminal has no text/history. BUT... After quitting Terminal and restarting the terminal sends a restored command

[Restored Jun 20, 2018, 2:44:12 PM]

Last login: Wed Jun 20 14:33:14 on ttys000

Restored session: Wed Jun 20 14:33:25 CDT 2018

Guys-MacBook-Air:~ guy$

and some of the BASH history returns. What is this "Restore"? How do I stop this "Restore"?

MacBook Air, OS X El Capitan (10.11.6), null

Posted on Jun 20, 2018 1:01 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 22, 2018 5:48 AM

This most likely means you have a "Window Group"


Terminal -> Preferences -> Window Groups


You get a Window Group via

Terminal -> Window -> Save Windows as Group...

You will be asked if you want to "[X] Restore all commands" and "[X] Use window group when Terminal starts"


You can remove any saved Window Groups via

Terminal -> Preferences -> Window Groups -> select the group -> [-]

10 replies
Question marked as Top-ranking reply

Jun 22, 2018 5:48 AM in response to Macaroni323

This most likely means you have a "Window Group"


Terminal -> Preferences -> Window Groups


You get a Window Group via

Terminal -> Window -> Save Windows as Group...

You will be asked if you want to "[X] Restore all commands" and "[X] Use window group when Terminal starts"


You can remove any saved Window Groups via

Terminal -> Preferences -> Window Groups -> select the group -> [-]

Jun 22, 2018 2:22 PM in response to Eric Root

Eric,

Not sure how to go about Terminal/Shell/Reset or Hard Reset. I followed the instructions here:


How to 'reset' bash to factory settings - MacOS Sierra - Stack Overflow


This worked only upon the first start after the "killall Terminal". I checked the terminal and there was no history and then issued an "ifconfig" to test the terminal (which worked perfectly). I quit the terminal App and after that, the same strange "Restored" message comes up and my history is restored (along with the last "ifconfig").

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal Keeps Restoring

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.