Piggy-backing on this (sorry!): can anyone recommend a good cli tool for quickly/interactively marking some lines from bash history as “favorites”, storing them in a separate permanent file, adding some comment, and optionally making it possible to share them between machines/sessions via e.g. a github gist, or git repo? Ideally working on Mac and Linux, and integrating well into bash
Shouldn’t this be easily done with navi, fzf and some bash scripting?
I have a file called “.functions.sh” and I source it in my .bashrc I put all my custom functions alias and variables there.
To me that’s simpler than using a CLI tool just to do basically the same thing.
I can’t, really, but I’ve been wanting something like that for a while now. I started down the path of logging command history to SQLite, with the notion that eventually I’d use it to accumulate a sort of per-directory menu system and annotate commands with working notes, but so far I haven’t taken it much further than just the db.
There are other tools with similar motivations - I feel like xiki had some ideas I found pretty interesting when I messed with it a while ago, and I’ve seen other history logging tools - but I haven’t really found anything that seemed quite right for me.