Over time, I become invested in my terminal sessions: tabs, command history, window layout and title, etc. Eventually, a reboot requires me to start all over again which wastes my time.
The two terminal emulators with which I'm familiar had at least partial capability here, but the functionality has since been removed: konsole lost this functionality somewhere along the way to KDE4. gnome-terminal lost the --save-config option as "obsolete" somewhere before version 3.10.2, i.e. the answer here no longer applies: Save multiple gnome-terminal layout?
I want to capture the current state of all terminal sessions and restore them after a reboot. A scripted solution would be fine, so long as it does not require manual updates to track session changes.
less, do you want that same file to be remembered next time you open your terminal or do you just want the tabs/panes set up and the relevant programs launched? Would something like my answer here work for you? – terdon May 20 '14 at 22:14terminatorcan do it as I explain in the link I gave in my previous comment. Let me know if you need anything else and I'll tweak it accordingly and post as a new answer here. If not, I will vote to close this as a duplicate. – terdon May 20 '14 at 23:59historyfunction of bash itself. How would that work? Would you like thehistorycommand to give different output on each of the separate panes? If so, then no. 2) Yes, it does not name them. You could work something out with aecho -ne "\033]0;FOO\007" which would set the title toFOO` but I don't think terminator itself can do this (that command is terminal agnostic, it's a bashism. For more see here)export HISTFILE='foo'for each tab. Sorry, no idea about a GUI way, I've never needed to do this. If you don't get any useful answers here after a while, flag for mod attention and ask them to migrate to [unix.se]. You might have better luck there. Make sure you include the clarifications you've given in the comments about what exactly you need. – terdon May 21 '14 at 16:29