Alejandro Mendoza@eviltoast.org to linuxmemes@lemmy.world · 3 months agosiempre lo hagoeviltoast.orgimagemessage-square193linkfedilinkarrow-up11.57Karrow-down118
arrow-up11.56Karrow-down1imagesiempre lo hagoeviltoast.orgAlejandro Mendoza@eviltoast.org to linuxmemes@lemmy.world · 3 months agomessage-square193linkfedilink
minus-squareacargitz@lemmy.calinkfedilinkarrow-up13arrow-down1·3 months agohistory | grep [the thing]
minus-squarebdonvr@thelemmy.clublinkfedilinkarrow-up20·3 months agoCTRL+R [the thing] please i beg you
minus-squareacargitz@lemmy.calinkfedilinkarrow-up4·3 months agowith grep I see all the alternatives, Ctl+R just shows me one
minus-squareoddlyqueer@lemmy.mllinkfedilinkEnglisharrow-up6·3 months 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·3 months agoCombine ctrl+R with fzf and get the best of both worlds
minus-squareAvicenna@lemmy.worldlinkfedilinkarrow-up2·3 months agoseeing multiple at the same time is more helpful though
minus-squaresurewhynotlem@lemmy.worldlinkfedilinkarrow-up6·3 months agoPpsshh. Not lazy enough. Create that in a script and call it “hgrep” and drop it into path.
minus-squareEmerald (she/her)@lemmy.worldlinkfedilinkarrow-up5·3 months 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·3 months 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-ris 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 thingwhich is stupid so i started doinggrep "thing" ~/.bash_historynow you’re telling me i should do
history | grep thingi can’t win
Exactly! Now copy paste it into Joplin where you’ll never see it ever again.