News for hackers. Stuff that matters.
Re:Jog: Print the last 10 commands you ran in the current di... by zhs on Monday November 08, 2021 @05:36PM (#29155184)
Re:Jog: Print the last 10 commands you ran in the current di... by jez on Monday November 08, 2021 @05:53PM (#29155377)
Using 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.
Re:Jog: Print the last 10 commands you ran in the current di... by angrais on Monday November 08, 2021 @06:38PM (#29155785)
Have 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

Re:Jog: Print the last 10 commands you ran in the current di... by OneLeggedCat on Tuesday November 09, 2021 @11:59AM (#29164194)
Thanks for posting that. Just installed it. Peco seems really neat.
Re:Jog: Print the last 10 commands you ran in the current di... by mkl on Tuesday November 09, 2021 @04:48AM (#29159587)
By 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?
Re:Jog: Print the last 10 commands you ran in the current di... by stinos on Tuesday November 09, 2021 @07:37AM (#29160909)
No 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.