• pedz@lemmy.ca
    link
    fedilink
    arrow-up
    13
    ·
    21 hours ago

    To be even more efficient while being lazy, try oh-my-bash. You can start typing the beginning of a command and use arrow up to cycle through only those, instead of the whole history. So if you had a very long mount command and don’t want to type it again, type mount and up arrow until it can be found. Not very useful for ls -al but very appreciated on longer commands.

    • chellomere@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      20 hours ago

      I personally use fzf to do basically the same thing, I just have to press ctrl-r before I start to type, and it does fuzzy matching to your history and shows more than one alternative at a time