2 ms·
I save all my history and have a little script to grep it for commands I've used. There was a thread on here about a shell add-on that would recommend one-line
by pbhjpbhj 6y ago
I save all my history and have a little script to grep it for commands I've used.
There was a thread on here about a shell add-on that would recommend one-liners, but I can't recall it ... anyone have any ideas?
Also I'd like a more robust version of my saved commands history (after 10 years or so it's getting to be like I want to make it a bit slicker), maybe backed by sqlite or something. Any suggestions?
- BenjiWiebe 6y agoDo you know about ctrl-R? At the prompt in bash, it lets you search your previous commands and edit and run them right there. Combined with a large HISTSIZE it's really useful.
- pbhjpbhj 6y agoYes, thank you. Also starting to type a command and using up-arrow to scroll through (I assume) endings of that command line that are in history. That's great too. But I often don't do, say,a do-release-upgrade (I use Kubuntu but prefer command line upgrade) within the time the command stays in history.