• merc@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    3 hours ago

    The worst is when you remember doing something before, but don’t remember enough details to be able to effectively search for it.

    Although, even then, I’m not going to just mindlessly hit “up”. Last time it happened I fed my command history through grep and removed all the things that I knew the command wasn’t. Just removing “ls” and “cd” from your history cuts the number of commands down by 80% or something.

    • Korthrun@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      45 minutes ago

      Check out the fzf shell bindings. Reverse history search with fuzzy matching is one of the features.

      • merc@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        5 minutes ago

        That doesn’t help when you remember what effect the command had but nothing about what the command itself looked like.