I just found out about fish shell a few moments ago. I switched Konsole on KDE to use it instead of bash and am impressed so far. Might install it on the Pihole eventually. Good stuff, just wanted to share. :)

  • Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 days ago

    It’s unfortunately not that easy when you’re using Linux at your job or want to be able to share your scripts with others…

    Like, Bash for scripting is quite cursed, but people will typically still prefer using it over learning a new language.

    • 123@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      Not to mention some environments don’t let you install anything other than what’s already on the box. Both sh and bash generally are available.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        Ah, good point. In many cases, you also don’t want to install an alternative shell, like if you’re dealing with lots of containers and would need to make Fish available in each one.

        Although, I will say that more recent versions of Fish are available as a standalone executable, so you don’t have to install it in the traditional sense. You can probably transfer it together with your script file in most cases. That’s a relatively new/experimental feature of Fish, though, so no idea how well such a workflow goes in practice.

    • Victor@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      I use Linux for my job but luckily I don’t have to share scripts with anyone. 😌