100
submitted 1 year ago by [email protected] to c/[email protected]
all 10 comments
sorted by: hot top controversial new old
[-] [email protected] 6 points 1 year ago

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)

[-] [email protected] 3 points 1 year ago

Use fzf for a more visual search.

[-] [email protected] 5 points 1 year ago

control shift R, then start typing, it will search your bash history

[-] [email protected] 1 points 1 year ago

I recommend using mcfly for that, it makes it even better.

[-] [email protected] 0 points 1 year ago

Hmm, normally it's just ctrl - r... Are you sure the shift is needed on your system?

[-] [email protected] 1 points 1 year ago

Some variants have ctrl+r bound to something else

[-] [email protected] 3 points 1 year ago

This is why I switched to fish; it seems to be much smarter understanding what I want to type.

[-] [email protected] 3 points 1 year ago

Yeah it's great how ctrl-r is kinda the default instead of something you have to go out of your way to use. Just start typing a command and the up arrow will only cycle through history that matches what you've typed so far.

[-] [email protected] 1 points 1 year ago

It's like the bus-stop-paradigm: If I wait just a bit longer and it will come. Meanwhile it would've been faster to walk.

this post was submitted on 04 Jul 2023
100 points (100.0% liked)

linuxmemes

20825 readers
743 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS