• Ada@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 months ago

    In addition to ctrl-r, there is also fish! Fish does something similar to Ctrl-R, but in an easier to use way. Start typing a command, and then press the up arrow. It will cycle through your history, but only the history that includes the text you’ve started typing.

    • Undearius@lemmy.ca
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 months ago

      This can be enabled in bash by putting these two lines in ~/.inputrc

      "\e[A": history-search-backward
      "\e[B": history-search-forward