@a14o@feddit.org to linuxmemes@lemmy.worldEnglish • 2 months agoSet and forgetfeddit.orgimagemessage-square56arrow-up1520
arrow-up1520imageSet and forgetfeddit.org@a14o@feddit.org to linuxmemes@lemmy.worldEnglish • 2 months agomessage-square56
minus-square@kernelle@0d.gslinkfedilink8•2 months agohistory | grep <search> I like seeing different usages
minus-squarefmstratlinkfedilinkEnglish6•2 months agoUse control r, and press control r repeatedly after the first find. It will cycle through every result.
minus-square@kernelle@0d.gslinkfedilink2•2 months agoYeah that’s what I’m trying to avoid, using grep displays all of my options at once.
minus-square@WhyJiffie@sh.itjust.workscakelinkfedilinkEnglish4•2 months agoalso, put a space before history so the useless searches don’t end up in the history
minus-squareSchiffsmädchenjungelinkfedilink1•2 months agoI’m too brain lazy to look up how to properly use grep
minus-square@kernelle@0d.gslinkfedilink3•edit-22 months agoYou can use regular strings! Can’t tell you how often* I use: history | grep docker
minus-squareSchiffsmädchenjungelinkfedilink6•2 months agoTIL history is a thing (I will have forgotten everything about it about 10seconds after closing this tab)
history | grep <search>
I like seeing different usages
Use control r, and press control r repeatedly after the first find. It will cycle through every result.
Yeah that’s what I’m trying to avoid, using grep displays all of my options at once.
also, put a space before history so the useless searches don’t end up in the history
This is the way
I alias h to history | grep
I’m too brain lazy to look up how to properly use grep
You can use regular strings! Can’t tell you how often* I use:
history | grep docker
TIL history is a thing (I will have forgotten everything about it about 10seconds after closing this tab)
curl cht.sh/grep