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

linuxmemes

20844 readers
2081 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
 
top 6 comments
sorted by: hot top controversial new old
[–] HorreC@kbin.social 2 points 1 year ago

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

[–] m15otw@feddit.uk 2 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 1 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 5 months ago

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