Oh thanks for this. I’ve been using history | grep $something for the longest time, but i always end up copy pasting the actual command cause i didn’t remember how to invoke the number, and copy pasting is so quick that you end up never looking up how to do it properly lol.
history | grep <something I vaguely remember >
!<number of that command>
You can do reverse search but I’m too lazy to remember the sequence right now
I got a new function for my bash aliases file lol
Just use FZF (fuzzy search finder) with the CTRL+R keybind.
ctrl R then type
Never tried history | grep though. Thanks for the tip!
Oh thanks for this. I’ve been using
history | grep $somethingfor the longest time, but i always end up copy pasting the actual command cause i didn’t remember how to invoke the number, and copy pasting is so quick that you end up never looking up how to do it properly lol.