You're viewing a single thread.
HorreC @kbin.social
control shift R, then start typing, it will search your bash history
55 0 ReplyLobsterDog @frig.social
Is it not just Ctrl-R or is that platform dependent
16 1 Replycount_duckula @discuss.tchncs.de
I have always used ctrl-r but I just checked and both work. TIL.
6 0 Replytsukassa @lemmynsfw.com Thanks for clearing up this mystery.
3 0 Reply
mrmanager @lemmy.today
Hmm, normally it's just ctrl - r... Are you sure the shift is needed on your system?
12 0 Replylungdart @lemmy.ca
Don't forget fzf. That will really jazz up your history search!
3 0 Replymausy5043 @lemmy.world No man entry for fzf
1 0 Replylungdart @lemmy.ca
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
1 0 Replymrmanager @lemmy.today
Ok if you want to learn Linux, you need to start web searching for stuff you hear about. :)
2 1 Reply
HorreC @kbin.social
you are right, I must have just learned it with a shift for some dumb reason and it stuck, thank you internet person.
2 0 Replymed @sh.itjust.works Some variants have ctrl+r bound to something else
1 0 Reply
whofearsthenight @kbin.social Now if you had to guess how often I remember that there is a keyboard shortcut that does this, but don't remember what it is, and do remember that I can just press up 30-70 times...
7 0 ReplyHorreC @kbin.social
you can hit it again after you are dialed in as much as you want and it will keep going back in time with the words you have in there and stuff that matches!
3 0 Reply
Rikudou_Sage @lemmings.world
I recommend using mcfly for that, it makes it even better.
5 0 Replyfuckstick @lemmy.world This. It took a while for it to sink in but now it’s muscle memory and a huge time saver
4 0 ReplyBipta @kbin.social What now? What is r? How does this work?
3 0 Replyfuckstick @lemmy.world 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.
6 0 Replygaiussabinus @lemmy.world I'm new to linux and i've been using $history | grep <thingy>. This information is very useful, thank you.
8 0 Replyfuckstick @lemmy.world 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
4 0 Reply
DontRedditMyLemmy @lemmy.world Why r? Maybe if I knew why r, then I wouldn't forget this every 13 seconds...
3 0 Replydanielton @lemmy.world
Reverse search
10 0 Reply