• Herzenschein@pawb.social
    link
    fedilink
    arrow-up
    8
    ·
    3 months ago

    While I do like fish syntax, you don’t really need to learn it. You can just use it for your interactive use in the terminal while writing your scripts in bash.

    • null@piefed.nullspace.lol
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 months ago

      This is the way. I’ve never even attempted to script anything in fish, but it’s just a great interactive shell OOTB. I think at most I have a colorscheme and an alias or 2.

      • Victor@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        Scripting in fish is so much better than bash, holy. Reduced my scripts’ LOC by probably 50% and made them actually legible when coming back to them 6 months later. I converted all my personal scripts from bash to fish.

    • Lena@gregtech.eu
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      Yeah that’s what I do to, I don’t need to write complex scripts anyway. Fish’s syntax seems interesting though.