Didn’t know about auto populating search queries, abbreviations, string scripting, and using private mode.

  • SinTan1729@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    12 hours ago

    It’s perfect for daily interactive use, but terrible for scripting. I write almost all my scripts in bash, the only exceptions being convenience scripts for fish itself.

    • traceur301@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      11 hours ago

      I still work with bash scripts from fish (to interoperate with bash users), but it’s more like how I use python: the interpreter is specified either in the shebang or explicitly on the cli command invoking the script. It works quite well actually

    • Laser@feddit.org
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      12 hours ago

      Same, but I don’t think it was ever intended differently; I mean the word interactive is literally in the name. If you want portable scripts, use bash. For simple helpers, quickly define a function. If you feel your script becomes too long, use Python.

      • SinTan1729@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 hours ago

        Agree, although I’ve recently replaced the python usecase with Go. Almost as easy to write, but much faster and safer.

        • Laser@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          8 hours ago

          Oh yeah, I never used Python myself and did some very simple (but IMHO too much hassle in bash) Go stuff some time ago. It’s a really good language for that, and if you can’t build on the target, the binary is statically linked anyways.