I've been using McFly [1] recently, and like it a lot.
> McFly replaces your default ctrl-r shell history search with an intelligent search engine that takes into account your working directory and the context of recently executed commands. McFly's suggestions are prioritized in real time with a small neural network.
the neural network is pretty broken. It prioritizes things that I did weeks ago over a command that I just ran 20 times. Be a bit critical of it, I actually found it fairly terrible.
I know it's open source and people working on it might be reading this so let me apologize to you personally and please don't take this message as discouragement. I know how demotivating one bad review can be. It just wasn't working for me.
> McFly replaces your default ctrl-r shell history search with an intelligent search engine that takes into account your working directory and the context of recently executed commands. McFly's suggestions are prioritized in real time with a small neural network.
[1] https://github.com/cantino/mcfly