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

linuxmemes

20785 readers
1135 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
 
all 8 comments
sorted by: hot top controversial new old
[–] HorreC@kbin.social 5 points 1 year ago (1 children)

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 (1 children)

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 (1 children)

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 4 months ago

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