Carly™@lemmy.world to linuxmemes@lemmy.worldEnglish · 1 year agoLook, I'm lazy, okay?lemmy.worldimagemessage-square61fedilinkarrow-up1650arrow-down17
arrow-up1643arrow-down1imageLook, I'm lazy, okay?lemmy.worldCarly™@lemmy.world to linuxmemes@lemmy.worldEnglish · 1 year agomessage-square61fedilink
minus-squareHorreC@kbin.sociallinkfedilinkarrow-up15·1 year agocontrol shift R, then start typing, it will search your bash history
minus-squaremrmanager@lemmy.todaylinkfedilinkarrow-up4·1 year agoHmm, normally it’s just ctrl - r… Are you sure the shift is needed on your system?
minus-squaremed@sh.itjust.workslinkfedilinkarrow-up1·1 year agoSome variants have ctrl+r bound to something else
minus-squarelungdart@lemmy.calinkfedilinkarrow-up1·1 year agoDon’t forget fzf. That will really jazz up your history search!
minus-squarelungdart@lemmy.calinkfedilinkarrow-up1·1 year agohttps://github.com/junegunn/fzf I recommend installing it as an oh-my-zsh plugin, but it’s not hard to get running in vanilla zsh/bash
minus-squaremrmanager@lemmy.todaylinkfedilinkarrow-up2arrow-down1·1 year agoOk if you want to learn Linux, you need to start web searching for stuff you hear about. :)
minus-squareRikudou_Sage@lemmings.worldlinkfedilinkarrow-up2·1 year agoI recommend using mcfly for that, it makes it even better.
minus-squareLobsterDog@frig.sociallinkfedilinkarrow-up3arrow-down1·1 year agoIs it not just Ctrl-R or is that platform dependent
minus-squarefuckstick@lemmy.worldlinkfedilinkEnglisharrow-up0·1 year agoThis. It took a while for it to sink in but now it’s muscle memory and a huge time saver
minus-squareBipta@kbin.sociallinkfedilinkarrow-up0·1 year agoWhat now? What is r? How does this work?
minus-squarefuckstick@lemmy.worldlinkfedilinkEnglisharrow-up2·1 year agoCTRL+R brings up a prompt and allows you to search through commands you’ve run before. If you’ve run different variations of the command hitting CTRL+R or CTRL+SHIFT+R cycles through commands similar to what you’ve typed out.
minus-squaregaiussabinus@lemmy.worldlinkfedilinkEnglisharrow-up2·1 year agoI’m new to linux and i’ve been using $history | grep <thingy>. This information is very useful, thank you.
minus-squarefuckstick@lemmy.worldlinkfedilinkEnglisharrow-up2·1 year agoSure thing! There’s lots of ways to do the same things, but either way stops you from hitting the up key a bajillion times
control shift R, then start typing, it will search your bash history
Hmm, normally it’s just ctrl - r… Are you sure the shift is needed on your system?
Some variants have ctrl+r bound to something else
Don’t forget fzf. That will really jazz up your history search!
No man entry for fzf
https://github.com/junegunn/fzf
I recommend installing it as an oh-my-zsh plugin, but it’s not hard to get running in vanilla zsh/bash
Ok if you want to learn Linux, you need to start web searching for stuff you hear about. :)
I recommend using mcfly for that, it makes it even better.
Is it not just Ctrl-R or is that platform dependent
This. It took a while for it to sink in but now it’s muscle memory and a huge time saver
What now? What is r? How does this work?
CTRL+R brings up a prompt and allows you to search through commands you’ve run before. If you’ve run different variations of the command hitting CTRL+R or CTRL+SHIFT+R cycles through commands similar to what you’ve typed out.
I’m new to linux and i’ve been using $history | grep <thingy>. This information is very useful, thank you.
Sure thing! There’s lots of ways to do the same things, but either way stops you from hitting the up key a bajillion times