cm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agoLinux Usersimagemessage-square100linkfedilinkarrow-up1838arrow-down119cross-posted to: programmerhumor@lemmy.ml
arrow-up1819arrow-down1imageLinux Userscm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square100linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareezekielmudd@reddthat.comlinkfedilinkarrow-up11·2 months agoOr, just type the command “history”, find the index number of the desired command, then type “! <index number>”, then <enter>.
minus-squareFrezik@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up13arrow-down1·2 months agoThat’s way more mental effort than pressing up a bunch of times.
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up7·2 months agoor Ctrl+R then search? I don’t know why people bother with history tbh.
minus-squareSabata@ani.sociallinkfedilinkarrow-up2·2 months agoThis is going to save me so much time pressing the up arrow.
minus-squaremerc@sh.itjust.workslinkfedilinkarrow-up1·2 months agoBecause you can pipe history to grep.
minus-squaresnowe@programming.devlinkfedilinkarrow-up1·2 months agowith fzf you get better grep with fuzzy search
minus-squareNot a newt@piefed.calinkfedilinkEnglisharrow-up2·2 months agoCtrl-R if you know part of the command.
minus-squareirish_link@lemmy.worldlinkfedilinkarrow-up2·2 months agoHoly cow!! I didn’t know that. I have been using history > history.txt to find “that one command for that one thing” I only need once every other month or so. Thanks, now I can just do that.
Or, just type the command “history”, find the index number of the desired command, then type “! <index number>”, then <enter>.
That’s way more mental effort than pressing up a bunch of times.
or Ctrl+R then search? I don’t know why people bother with
historytbh.This is going to save me so much time pressing the up arrow.
Because you can pipe history to grep.
with fzf you get better grep with fuzzy search
Ctrl-R if you know part of the command.
Holy cow!! I didn’t know that. I have been using history > history.txt to find “that one command for that one thing” I only need once every other month or so. Thanks, now I can just do that.