Please use Ctrl+R

3 years ago by Yote.zip to c/linuxmemes

Bread 18 points 3 years ago

Up arrow just feels right. If I can satisfy my goal just by tapping one button repeatedly vs not doing that. I think we all know what satisfies that part of the monkey brain.

path: 0 757245, hotness: undefined, score: 18, children: 0
alexthelion335 7 points 3 years ago

The ! is really useful when you forget you need to run the command with sudo. sudo !!

path: 0 760076, hotness: undefined, score: 7, children: 4
dukk 2 points 3 years ago

That’s life changing shit right there.

path: 0 760076 794489, hotness: undefined, score: 2, children: 2
wuddupdude 2 points 3 years ago

No thanks. I'll just press the up arrow -> ctrl-a -> sudo

path: 0 760076 794489 795043, hotness: undefined, score: 2, children: 1
norawibb 1 point 3 years ago

this is way more intuitive anyway

path: 0 760076 794489 795043 798776, hotness: undefined, score: 1, children: 0
Aurenkin 2 points 3 years ago

I like the argument reuse as well via !:1 and such. A bit more situational but can definitely come in handy

path: 0 760076 809524, hotness: undefined, score: 2, children: 0
supermurs 4 points 3 years ago

Up arrow all the way!

path: 0 759845, hotness: undefined, score: 4, children: 0
bronzing 4 points 3 years ago

This was recently mentioned in another post, but I don’t see it here: fzf make CTRL+R much easier to use. Bonus: in zsh you can start typing a command and then hit the up arrow to show only commands that start the same.

path: 0 799314, hotness: undefined, score: 4, children: 0
drew_belloc 3 points 3 years ago

Ctrl+R just changed everything for me now, thank you

path: 0 808419, hotness: undefined, score: 3, children: 0
variouslegumes 3 points 3 years ago

I always just use zsh with oh my zsh. Best of both worlds.

One thing that I still don't know how to do is go to the next result in the search with Ctrl+r. Makes it less useful lol

path: 0 761365, hotness: undefined, score: 3, children: 2
yote_zip 3 points 3 years ago

Press Ctrl+r and Ctrl+s to cycle through.

path: 0 761365 767858, hotness: undefined, score: 3, children: 0
red 2 points 3 years ago

In Bash you just hit ctrl+r again, and again, until you found what you're looking for

path: 0 761365 772992, hotness: undefined, score: 2, children: 0
VinesNFluff 3 points 3 years ago

[opens terminal and hits control-R]

My mind has been expanded. How come no one told me of this before? This surf-and-turfs the fuck out of mashing up.

path: 0 788557, hotness: undefined, score: 3, children: 0
Alfi 2 points 3 years ago

history |grep

path: 0 784009, hotness: undefined, score: 2, children: 0
ProfessorGumby 2 points 3 years ago

Ctrl p is the appropriate keystroke to replace the up arrow.

path: 0 758094, hotness: undefined, score: 2, children: 0
crunchypotat77 2 points 3 years ago

CTRL+R is the GOAT.

path: 0 757099, hotness: undefined, score: 2, children: 0
lungdart 2 points 3 years ago path: 0 811703, hotness: undefined, score: 2, children: 0
GustavoM 1 point 3 years ago

"You are late for job?"

"CTRL+R"

path: 0 869059, hotness: undefined, score: 1, children: 0
whodoctor11 1 point 3 years ago
path: 0 757458, hotness: undefined, score: 1, children: 0
lemminer 1 point 3 years ago

I use fzf btw

path: 0 891309, hotness: undefined, score: 1, children: 0
linuxmemes
linuxmemes

@lemmy.world

login for more options
33133
2398
6562

Hint: :q!


Sister communities:

Community rules (click to expand)

1. Follow the site-wide rules
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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 of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
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, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

Β 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

go to feed...