Alejandro Mendoza@eviltoast.org to linuxmemes@lemmy.world · 27 days agosiempre lo hagoeviltoast.orgimagemessage-square193linkfedilinkarrow-up11.56Karrow-down117
arrow-up11.54Karrow-down1imagesiempre lo hagoeviltoast.orgAlejandro Mendoza@eviltoast.org to linuxmemes@lemmy.world · 27 days agomessage-square193linkfedilink
minus-squarebdonvr@thelemmy.clublinkfedilinkarrow-up20·26 days agoCTRL+R [the thing] please i beg you
minus-squareacargitz@lemmy.calinkfedilinkarrow-up4·26 days agowith grep I see all the alternatives, Ctl+R just shows me one
minus-squareoddlyqueer@lemmy.mllinkfedilinkEnglisharrow-up6·26 days agoFor me ctrl-r is faster most of the time, history | grep [command] is better if I can’t easily pattern match (don’t remember it exactly, using several flag variations, etc.). they’re both good tools.
minus-squaredisobey2623@lemmy.dbzer0.comlinkfedilinkarrow-up6·26 days agoCombine ctrl+R with fzf and get the best of both worlds
minus-squareAvicenna@lemmy.worldlinkfedilinkarrow-up2·26 days agoseeing multiple at the same time is more helpful though
minus-squaresurewhynotlem@lemmy.worldlinkfedilinkarrow-up6·26 days agoPpsshh. Not lazy enough. Create that in a script and call it “hgrep” and drop it into path.
minus-squareEmerald@lemmy.worldlinkfedilinkarrow-up5·26 days agoi was doing cat ~/.bash_history | grep thing which is stupid so i started doing grep "thing" ~/.bash_history now you’re telling me i should do history | grep thing i can’t win
minus-squarealtphoto@lemmy.todaylinkfedilinkarrow-up1·26 days agoExactly! Now copy paste it into Joplin where you’ll never see it ever again.
history | grep [the thing]
CTRL+R [the thing]
please i beg you
with grep I see all the alternatives, Ctl+R just shows me one
For me
ctrl-r
is faster most of the time,history | grep [command]
is better if I can’t easily pattern match (don’t remember it exactly, using several flag variations, etc.). they’re both good tools.Combine ctrl+R with fzf and get the best of both worlds
You can press up
seeing multiple at the same time is more helpful though
https://atuin.sh/
Ppsshh. Not lazy enough. Create that in a script and call it “hgrep” and drop it into path.
Brilliant
Why not just use an alias?
That’s the right way, yes.
i was doing
cat ~/.bash_history | grep thing
which is stupid so i started doinggrep "thing" ~/.bash_history
now you’re telling me i should do
history | grep thing
i can’t win
Exactly! Now copy paste it into Joplin where you’ll never see it ever again.