Carly™ to linuxmemes@lemmy.worldEnglish • 1 year agoLook, I'm lazy, okay?lemmy.worldimagemessage-square85fedilinkarrow-up11.25Karrow-down119
arrow-up11.23Karrow-down1imageLook, I'm lazy, okay?lemmy.worldCarly™ to linuxmemes@lemmy.worldEnglish • 1 year agomessage-square85fedilink
minus-square@m15otw@feddit.uklinkfedilinkEnglish49•1 year agoCtrl+R Then type any part of the command (filename, search string, etc) Ctrl+R again to cycle through the matches. (Best feature in bash)
minus-square@brakenium@lemm.eelinkfedilinkEnglish8•1 year agoI’ve been using this for a long time, never knew I could press Ctrl + R again. Thanks!
minus-square@wandering_nomad@lemmy.worldlinkfedilinkEnglish8•1 year agoCtrl + S to go the other way if you overshoot!
minus-square@m15otw@feddit.uklinkfedilinkEnglish3•1 year agoCan’t just hit enter to run the one you want then, though.
minus-square@rufus@lemmy.worldlinkfedilinkEnglish7•1 year agoType: !1234 … to run whatever history number of the command.
minus-square@Sidewayspeach@feddit.nllinkfedilinkEnglish1•1 year agoBut how to go backwards and forwards through the results? I just cycle through again!!
minus-square@m15otw@feddit.uklinkfedilinkEnglish1•1 year agoAs @wandering_nomad@lemmy.world said above, Ctrl+S
Ctrl+R
Then type any part of the command (filename, search string, etc)
Ctrl+R again to cycle through the matches.
(Best feature in bash)
Use fzf for a more visual search.
This is the way.
I’ve been using this for a long time, never knew I could press Ctrl + R again. Thanks!
Ctrl + S to go the other way if you overshoot!
Or
history | grep 'command'
Can’t just hit enter to run the one you want then, though.
Type: !1234 … to run whatever history number of the command.
But how to go backwards and forwards through the results? I just cycle through again!!
As @wandering_nomad@lemmy.world said above, Ctrl+S
Wish I knew this sooner.