3 ms·
This looks really nice. You say you record the number of times a command was executed. I'm currently using FZF for ctrl-r search, and it's amazing, but one thin
by carlmr 3y ago
This looks really nice. You say you record the number of times a command was executed. I'm currently using FZF for ctrl-r search, and it's amazing, but one thing that bothers me is that I have some commands that I search for and use quite often, but then I don't need them for a while, they vanish from my history, and then I need them again.
Would the internal database of McFly keep often searched for commands from the past, even though they're out of the bash history?
- petepete 3y agoIf you set your HISTFILESIZE to -1 Bash will keep your history indefinitely. > Non-numeric values and numeric values less than zero inhibit truncation.
- bnprks 3y agoI believe McFly hangs on to all history in the database, though you can limit the UI to only return the most recent entries (MCFLY_HISTORY_LIMIT). One side note -- I made a small tool to integrate the McFly database with the fzf UI, which might be of interest to you [1]. Overall I've been a happy user of McFly for a few years, and it's 100% an upgrade over bash's command history (properly storing commands from multiple terminal windows; collecting working directory + exit status info, etc.) [1] https://github.com/bnprks/mcfly-fzf https://github.com/bnprks/mcfly-fzf