a14o@feddit.org to linuxmemes@lemmy.worldEnglish · 1 day agoSet and forgetfeddit.orgimagemessage-square58linkfedilinkarrow-up1501arrow-down15
arrow-up1496arrow-down1imageSet and forgetfeddit.orga14o@feddit.org to linuxmemes@lemmy.worldEnglish · 1 day agomessage-square58linkfedilink
minus-squareSchiffsmädchenjunge@sh.itjust.workslinkfedilinkarrow-up17arrow-down1·1 day agoI just load bash.history in Kate or whatever and ctrl-f the command, copy the line, insert that in the terminal, adapt if necessary and go. Unless it’s one of the last ten or so I used, then it’s just ⬆️⬆️⬇️⬇️⬅️➡️⬅️➡️🅱️🅰️
minus-squarekernelle@0d.gslinkfedilinkarrow-up8·23 hours agohistory | grep <search> I like seeing different usages
minus-squarefmstrat@lemmy.nowsci.comlinkfedilinkEnglisharrow-up5·21 hours agoUse control r, and press control r repeatedly after the first find. It will cycle through every result.
minus-squarekernelle@0d.gslinkfedilinkarrow-up2·20 hours agoYeah that’s what I’m trying to avoid, using grep displays all of my options at once.
minus-squareWhyJiffie@sh.itjust.workslinkfedilinkEnglisharrow-up4·23 hours agoalso, put a space before history so the useless searches don’t end up in the history
minus-squareSchiffsmädchenjunge@sh.itjust.workslinkfedilinkarrow-up1·23 hours agoI’m too brain lazy to look up how to properly use grep
minus-squarekernelle@0d.gslinkfedilinkarrow-up3·edit-223 hours agoYou can use regular strings! Can’t tell you how often* I use: history | grep docker
minus-squareSchiffsmädchenjunge@sh.itjust.workslinkfedilinkarrow-up6·22 hours agoTIL history is a thing (I will have forgotten everything about it about 10seconds after closing this tab)
I just load bash.history in Kate or whatever and ctrl-f the command, copy the line, insert that in the terminal, adapt if necessary and go. Unless it’s one of the last ten or so I used, then it’s just ⬆️⬆️⬇️⬇️⬅️➡️⬅️➡️🅱️🅰️
history | grep <search>
I like seeing different usages
This is the way
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
I alias h to history | grep
I’m too brain lazy to look up how to properly use grep
curl cht.sh/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)