• Bappity@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    7 hours ago

    I did this until my coworker got annoyed enough that they told me to start using history | grep lmaoo

    • felbane@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 hours ago

      Or ctrl+r and start typing what you’re searching for, and repeat ctrl+r to find the next newest match.

      For example, [C-r] ssh [C-r] [C-r] will auto fill the 3rd most recent ssh command you’ve run. Try it, your life will be filled with rainbows and unicorns.

    • NeatNit@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      There are even better ways built into the shell, but I can never remember any of them. I also never thought of history|grep, I think I might actually remember that one. Thanks!