• katy ✨
    link
    fedilink
    191 year ago

    id type out more ~/.bash_history | grep ls and copy, paste before id type out ls tbh

    • @seaQueue@lemmy.world
      link
      fedilink
      7
      edit-2
      1 year ago

      Why do all that typing? Hit ctrl-r first then type ls. Bonus points if you hook fzf into it.

      fzf hooked into ctrl-r, a bash history of about 100k and HISTCONTROL=ignoreboth is magic.

      Note: backup your history file periodically, system crashes at the wrong time can zero it leaving you incompetent until it’s restored.

    • Crass Spektakel
      link
      fedilink
      -11 year ago

      at least you avoided a “useless cat” by using “more” instead. Respect Bro!