cm0002@lemmy.world to Programmer Humor@programming.dev · 5 days agoLinux Userslemmy.mlimagemessage-square140linkfedilinkarrow-up11.3Karrow-down125
arrow-up11.28Karrow-down1imageLinux Userslemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 5 days agomessage-square140linkfedilink
minus-squareezekielmudd@reddthat.comlinkfedilinkarrow-up12·5 days 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·5 days agoThat’s way more mental effort than pressing up a bunch of times.
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up8·edit-24 days agoor Ctrl+R then search? I don’t know why some people still bother with history tbh.
minus-squaremerc@sh.itjust.workslinkfedilinkarrow-up3·5 days agoBecause you can pipe history to grep.
minus-squaresnowe@programming.devlinkfedilinkarrow-up3·5 days agowith fzf you get better grep with fuzzy search
minus-squareSabata@ani.sociallinkfedilinkarrow-up2·5 days agoThis is going to save me so much time pressing the up arrow.
minus-squareNot a newt@piefed.calinkfedilinkEnglisharrow-up2·5 days agoCtrl-R if you know part of the command.
minus-squareirish_link@lemmy.worldlinkfedilinkarrow-up2·5 days 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 some people still bother with
history
tbh.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.
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.