News for hackers. Stuff that matters.
Re:I want a better shell (2019) by iKlsR on Friday September 10, 2021 @01:33PM (#28484749)
Yes and there is also Ctrl+R which kicks off a recursive search which is what I use most of the time but what about the complex 2 liner with pipes and dates 19 commands ago? :)
Re:I want a better shell (2019) by hotsauceror on Friday September 10, 2021 @09:43PM (#28488747)
EDIT: Oh. Duh. Brain freeze. Well, I’ll leave this here anyway.

Won’t this work:

    $ history | grep SOME_UNIQUE_PART_OF_YOUR_TWO_LINER
And then

    $ !HISTORYID
? I do this almost daily and with my bash history set to 10000 lines I pretty much find everything.
Re:I want a better shell (2019) by e3bc54b2 on Friday September 10, 2021 @10:33PM (#28488982)
Try fzf. It lets searching recursively and out of order through history, file system, and can be inserted anywhere in a pipe.
Re:I want a better shell (2019) by iKlsR on Saturday September 11, 2021 @05:28AM (#28490607)
Thanks, this was what I was looking for.
Re:I want a better shell (2019) by mechtaev on Friday September 10, 2021 @09:06PM (#28488561)
fzf can partially solve this, as shown in this blog post: https://nickjanetakis.com/blog/fuzzy-search-your-bash-histor...
Re:I want a better shell (2019) by iKlsR on Friday September 10, 2021 @09:10PM (#28488585)
Exactly what I'm looking for, they even prelude with what I typed above, thanks.