by raverbashing · 3y ago · 0 comments
You can save what you type with the 'script' command.
script test_session
Will save everything you type and their output to the test_session file until you exit the shell with Ctrl-DLook up "man script" for more details (funny it mentions 'typescript' but it is not that typescript)
(and while I joke about 'kids these days' I learned this from the UNIX greybeards so there's that as well)
But that's exactly what an alias is. Put it on a script that you source when loading the terminal and there you have it
Or you could have a "commands.txt" where you copy/paste commands
Though yeah, maybe there should be a better solution (well, you can always look back history as well)
however, I am hoping for something that is far more interactively editable (like going up a couple of cells, editing and re running them in context) and also allows annotations / markdown / hyperlinks etc interspersed among the cells
PS: I am also on Windows a lot of time