zsh or fish for an intermediate Linux user? - eviltoast

So I’ve been using Linux now for a while, and am looking to migrate my dev environment to vim and spend more time in the command line. I’m fairly comfortable with bash but by no means an expert. I’ve used zsh with some minor customization but just recently learned about fish. I’d love to hear people’s opinions.

  • yum13241@lemm.ee
    link
    fedilink
    arrow-up
    9
    arrow-down
    3
    ·
    1 year ago

    ZSH, ZSH, ZSH! Fish is not POSIX compliant, meaning most shell scripts won’t work and it has its own special snowflake syntax.

    Also, don’t use Oh-My-ZSH! Just use the package manager in your system.

    • pitbuster@lemmy.ml
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      you can always run scripts with the shell they were written for (and you can even argue that people writing scripts should always set the shebang)

      • yum13241@lemm.ee
        link
        fedilink
        arrow-up
        1
        arrow-down
        3
        ·
        1 year ago

        If I have to switch shells all the time when another shell, zsh has the same functionality as fish, without the switching around, I’ll use that. Not to mention fish causes flatpak to not add Flatpaks to the app menu until restart. Environment variable messes. If I have to install a bunch of other stuff to make fish work, vs make zsh work more nicely, I’ll pick the 2nd one.

    • boyi@lemmy.sdf.org
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      1 year ago

      meaning most shell scripts won’t work

      What do you even mean? I run my bash script on Fish shell. No problem. Just need indicate the shebang at the top of the shell script.

      unless you want to run zsh/bash commands in cli mode - that’s a different story.