3 ms·
Why not use fzf? https://github.com/junegunn/fzf https://github.com/junegunn/fzf
by zhs 5y ago
Why not use fzf? https://github.com/junegunn/fzf https://github.com/junegunn/fzf
- jez 5y agoUsing fzf to power ^R (reverse history search) is such a huge productivity win. Also it has the side effect of showing you the last 10 commands without any other config or setup.
- angrais 5y agoHave you tried Peco [1] in the past? Seems similar. I'd be curious to hear what people's experiences are of both technologies. [1]: https://github.com/peco/peco https://github.com/peco/peco
- OneLeggedCat 5y agoThanks for posting that. Just installed it. Peco seems really neat.
- mkl 5y agoBy default that doesn't seem to pay attention to the current directory or the directories commands were run in. Is that a configuration option or something?
- stinos 5y agoNo but it would be very straightforward to do something like what the OP does, and then instead of using tail you just pipe the grep result for PWD into fzf. Which has some advantages: all commands instead of last n, plus of course the killer feature which is fuzzy matching.