ctrl + r
gang
linuxmemes
Hint: :q!
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack members of the community for any reason.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
- These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn. Even if you watch it on a Linux machine.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
Please report posts and comments that break these rules!
Holy Crap. I have gotten into the arrow up mode. Then I went to History.
But, but, but ctrl + r. Holy crap.
Thank you kind sir or madam.
If you enjoy that, then let me introduce you you fzf - a fuzzy finder that has support for replacing ctrl + r in shells with fuzzy matching. Among other uses.
https://github.com/junegunn/fzf#key-bindings-for-command-line
You can also install https://github.com/dvorka/hstr to supercharge your ctrl+r
Is there a MacOS versión of this? Asking for a friend.
It's the same, ctrl
+ r
. It is a bash/shell thing so works on any os that uses bash or similar shells. Note, it is not the command key, but ctrl, unlike a lot of other shortcuts on macos.
Y'all know about ctrl-r to search history, right? I went for so many years without even thinking to look for something better than up-arrow, so I have to mention it.
Wait until they learn that you can ctrl+u
when you mistyped your password in sudo
instead of spamming backspace...
history | grep
Does the job well if the key combo doesn't work.
Followed by !xxx where xxx is the number of the command to re-run
Finally the ls
command!
Time to up your game with Ctrl + R reverse search! 🤓
Oh, and Ctrl + Shift + R brings you back in the search, niiiiice.
Thank you kind stranger 👍 ☺️.
Ctrl+R together with fzf
makes this obsolete
my humble method: history | grep -i searchterm
I usually do ctrl+r but with zsh I can type the beginning of the command and press up and it will search that way too.
- vim ~/.inputrc
- Paste the following:
"\e[A": history-search-backward "\e[B": history-search-forward
Thank me later
I feel this in my soul. Or when you realize you're hitting up up up up to find something trivial like ls
and it would have been more efficient to just type ls
. LOL.
Bro, do you even ^R
?
No, no, no. You don't just land on the right one. You accidentally go past it and then have to press down once or twice.
ctrl+p gang RISE UP
Fish finally broke me of this habit, and now it's one of the first things I install on any system
history | grep term
The command is ls
I have my zsh set up so that I can type in something and press up to search for commands I ran with the the things I typed
Control+r.
You're welcome.
history | grep {some part of command}
Much more useful for going further back, even without grep.
I've just signed up to this site and I'm being personally attacked already. smh
Ctrl-R