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. :)

  • Victor@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    20 hours ago

    so some scripts I use had issues

    I just rewrote all of my scripts in idiomatic fish. 😄

    why do you like fish? :)

    It made my scripts 50% shorter on average, and 100% more legible. Short and simple. The code is easier to read and maintain, IMO. Less magic syntax that you need to look up in the bash manual* every dang time. You come back to your scripts after a few years and you just instantly can see what they do, without comments.

    (*) Speaking of the manual. The bash manual is quite long. And the zsh manual is a f—ing mess, split up into so many sections, and the thing I want to find is never where I first look, so I just go into the zsh “all” manual, which is humongous and difficult to navigate, basically just a cat of all the different zsh manuals.

    Fish has a short and sweet manual because the language is very small, and every command has its own manual page as well, which just makes sense on some level. Also it’s available as a web page by typing help. Very convenient.

    Very well thought out. 👌