60
all 8 comments
sorted by: hot top controversial new old
[-] HorreC@kbin.social 5 points 1 year ago

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

[-] rikudou@lemmings.world 1 points 1 year ago

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

[-] m15otw@feddit.uk 4 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)

[-] p0q@sh.itjust.works 3 points 1 year ago

Use fzf for a more visual search.

[-] tobier@lemmy.world 1 points 1 year ago

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

[-] amos@lemmy.world 1 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.

[-] 737@lemmy.blahaj.zone 1 points 5 months ago

i use vi mode in zsh for that reason, its pretty good

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

linuxmemes

20974 readers
65 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