• mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    29
    ·
    12 days ago

    Default zsh is just bash, you need to add all the fancy plugins to get it to do cool stuff

    fish is for people who don’t want to spend the time setting it all up and to just get a shell that has most of the QoL fetaures builtin.

        • floquant@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          11
          ·
          11 days ago

          No, they are executed according to the shebang on the first line, which is usually bash. If it is missing, it will default to the current shell.

          • Azzu@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            4
            ·
            11 days ago

            That’s true, but I definitely use fish as my default shell and when it runs a script without shebang it automatically runs it with bash. Thus I assume that’s the fish default to make your scripts work.

            • floquant@lemmy.dbzer0.com
              link
              fedilink
              arrow-up
              1
              ·
              10 days ago

              Trying to be more POSIX-compatible by further breaking POSIX spec is an ok choice to make in this case imo, but I think that’s a somewhat important detail to know :)

            • Nalivai@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              10 days ago

              The situation when people go on stackoverflow and just grab some shit from the top answer and just copy paste in their console is surprisingly normal. Not me, obviously, but like other people do it all the time.