Feature request: retain command history for individual tabs across iTerm2 restarts / machine restarts.
Thanks for filing an issue! Please answer the questions below so I can help you.
-
iTerm2 version: 3.2.6
-
OS version: 10.14.1 (18B75)
-
This is a feature request and so skipping debug files attachment.
I was unable to find the functionality in the current feature set. If I missed it, please point me to it and how to configure iTerm2 accordingly.
The functionality I'm seeking is to have iTerm2 remember the command history of each individual tab, and be able to restore that history whenever iTerm2 is restarted or tab/window layout is restored from the saved named layout. In other words, similarly to how it restores previous output that was in that tab (with one-line inverted color saying "Session Contents Restored"), it should also restore command history context that occured in that tab prior to restart of iTerm2.
My typical use of iTerm2 is 2 windows with multiple tabs in each. One window is for local activities such as one tab for git operations, another tab for build commands, another tab for pushing build updates to some development test box, another for executing development project locally, etc. Another window I have tabs for each machine that I frequently ssh into. Since PWD for each tab can be unique (git is at repo root, but build is within src, and execute is within build-target directory) and because commands can be lengthy to type every time, it is easier to keep multiple named tabs rather than use one shell for all commands.
The problem is that every time I reboot my mac (or for whatever reason have to restart iTerm2), it looses all the commands that I've been using, and thus I have to manually go and recall and retype each command in each tab. This, needless to say, is inconvenient, and is rather incongruent with "tab/windows restored" where not everything about them has really been restored.
This feature would be a huge help!
Thanks!