cm0002@lemmy.world to Programmer Humor@programming.dev · 14 days agoLinux Userslemmy.mlimagemessage-square147fedilinkarrow-up11.08Karrow-down123cross-posted to: programmerhumor@lemmy.ml
arrow-up11.06Karrow-down1imageLinux Userslemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 14 days agomessage-square147fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareezekielmudd@reddthat.comlinkfedilinkarrow-up10·14 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-up12·14 days agoThat’s way more mental effort than pressing up a bunch of times.
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up7·14 days agoor Ctrl+R then search? I don’t know why people bother with history tbh.
minus-squareSabata@ani.sociallinkfedilinkarrow-up2·14 days agoThis is going to save me so much time pressing the up arrow.
minus-squaremerc@sh.itjust.workslinkfedilinkarrow-up2·14 days agoBecause you can pipe history to grep.
minus-squaresnowe@programming.devlinkfedilinkarrow-up1·14 days agowith fzf you get better grep with fuzzy search
minus-squareirish_link@lemmy.worldlinkfedilinkarrow-up2·14 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.
minus-squareNot a newt@piefed.calinkfedilinkEnglisharrow-up2·14 days agoCtrl-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 people bother with
history
tbh.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
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.