• bad_news@lemmy.billiam.net
    link
    fedilink
    arrow-up
    0
    ·
    12 days ago

    I make ~/bin scripts that can be saved, then you have a backlog of real, backed up scripts you can add to path anywhere

    • MajorHavoc@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      12 days ago

      I’m an apprentice to both your ways.

      I create a tidy backed up script in ~/bin, and then I only ever evoke it from my bash history, because otherwise I don’t remember I had it.

    • esa@discuss.tchncs.de
      link
      fedilink
      arrow-up
      0
      ·
      11 days ago

      Yeah, that’s what I do for complex stuff. Aliases are pretty handy too, but I use them for stuff like “v=nvim” and “vd=nvim -d”. Also one function for fd to “nvim $(rf -l $1)”