all 9 comments

sorted by: hot top controversial new old
[–] 8 points 3 years ago (1 child)

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

  • source
  • hideshow 2 child comments
  • [–] 6 points 3 years ago (2 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)

  • source
  • hideshow 4 child comments
  • [–] 2 points 3 years ago (1 child)

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

  • source
  • hideshow 2 child comments
  • [–] 1 point 3 years 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.

  • source
  • parent
  • [+] 1 point 3 years ago
    [+] 1 point 2 years ago* (last edited 1 year ago)