• Ada@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    15
    ·
    20 hours 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
      11
      ·
      18 hours ago

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

      "\e[A": history-search-backward
      "\e[B": history-search-forward
      
      • Wildmimic@anarchist.nexus
        link
        fedilink
        English
        arrow-up
        2
        ·
        9 hours ago

        My Nobara installation has those commands mapped to pageup/down by default, so it’s probably a default in other distros too if anyone wants to try it out without editing first