(no title)
LarryClapp | 2 years ago
I don't think hucksh (or any shell) could provide an automatic way to undo some series of arbitrary commands. If nothing else, "/bin/rm" is forever, generally speaking.
What it could do is let you select individual commands and then automatically combine them all into a single command that you can save or copy&paste to someone else. Right now, the UI shows the command ID, which is a database key, so you could do something similar yourself, something along the lines of
hucksh sql "select command
from command_history
where id in (101, 103, 105, 107, 109)
order by id"
where the "101, 103, 105, ..." are the IDs of the commands you entered and want to reify into a single "one-liner". Noting them and entering them by hand would be a drag, but it'd work.Hope this helps. If I've misunderstood you in some way, let me know. Thanks for your comment, regardless. :)
No comments yet.