cm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前Linux Userslemmy.mlimagemessage-square150linkfedilinkarrow-up11.31Karrow-down128cross-posted to: programmerhumor@lemmy.ml
arrow-up11.28Karrow-down1imageLinux Userslemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 3 个月前message-square150linkfedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareezekielmudd@reddthat.comlinkfedilinkarrow-up12·3 个月前Or, 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·3 个月前That’s way more mental effort than pressing up a bunch of times.
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up8·edit-23 个月前or Ctrl+R then search? I don’t know why some people still bother with history tbh.
minus-squaresnowe@programming.devlinkfedilinkarrow-up3·3 个月前with fzf you get better grep with fuzzy search
minus-squareSabata@ani.sociallinkfedilinkarrow-up2·3 个月前This is going to save me so much time pressing the up arrow.
minus-squareirish_link@lemmy.worldlinkfedilinkarrow-up2·3 个月前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.
minus-squareNot a newt@piefed.calinkfedilinkEnglisharrow-up2·3 个月前Ctrl-R if you know part of the command.
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 some people still bother with
historytbh.Because you can pipe history to grep.
with fzf you get better grep with fuzzy search
This is going to save me so much time pressing the up arrow.
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.
Ctrl-R if you know part of the command.