[PLUG] Saving terminal commands

John Jason Jordan johnxj at comcast.net
Thu Feb 5 19:39:58 UTC 2009


On Thu, 05 Feb 2009 11:17:17 -0800
"Richard C. Steffens" <rsteff at comcast.net> dijo:

> John Jason Jordan wrote:
> > I'd still like to be able to save everything that happened in a tab
> > over a period of time. It would be very handy when troubleshooting
> > where you did not resolve the problem and need to come back to it
> > later. If you could save everything that happened in a tab then you
> > could just reload the tab later and use the history command in the tab
> > to remind yourself of all the commands you tried. And then you could
> > use Ctrl-r to get the ones you want to retry
> 
> Couldn't you copy and paste it into a text file?

Yes, that is always an option. But it takes much more effort. And I'm a
big fan of tabs. And I notice that (at least in the Gnome terminal) the
up and down arrows are specific to the tab you are in. For example, I
can be ripping and encoding CDs in one tab and solving a problem with
pulseaudio in another. In the ripping and encoding tab I use just two
or three commands, and the up and down arrows display only those
commands and none of the commands that I am using in the other tab, and
vice-versa. Having said that, Ctrl-r does access all the commands from
all tabs over all of recorded history.

My point is that the terminal is already somewhat configured for tabs
having distinct identies and histories. The feature I want does not
exist, but I'm guessing it wouldn't be too hard to implement, given the
way tabs currently work. In fact, you can even give your tabs different
names, a feature which I use occasionally when I have several tabs open
- makes it easier to get to the right one. It would be so simple if I
could just "save" the tab and all of its history. Next time I launch
the terminal I can just select the tab from a list of saved tabs and
I'm back where I was when I quit. A quick "history" command would
refresh my memory as to all the commands I used during that session.

The problem with a text file is that it takes more effort. Just
remembering what I called it and where I put it is a challenge. I am
used to tabs. 



More information about the PLUG mailing list