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

linuxmemes

20762 readers
2013 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
[–] [email protected] 3 points 1 year ago

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

[–] [email protected] 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)

[–] [email protected] 2 points 1 year ago

Use fzf for a more visual search.

[–] [email protected] 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.

[–] [email protected] 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.

[–] [email protected] 1 points 4 months ago

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