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

  • tyler@programming.dev
    link
    fedilink
    English
    arrow-up
    25
    ·
    edit-2
    2 days ago

    To get most of the good features of fish in zsh you have to install a bunch of plugins. And it’s way slower than fish as well. I used zsh for like 6 years and when I switched to fish (probably in 2018 or 19) I’ve never gone back. Fish is just so much better.

    • rozodru@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 hours ago

      since I switched to NixOS I’m finding this out now. Prior to this every Distro I was on I used zsh/oh my zsh because I’m a dummy and need the autosuggestions, autocomplete, syntax highlighting etc and it was quick, no issues.

      Now that i’m on Nix zsh is slow to get to a prompt. logging in via tty takes 2-5 seconds to hit a prompt, in a terminal about the same. maybe I set up my nix config wrong, I don’t know. I’m only loading those three pluggins and I’ve boiled it down to the autosuggestions and or autocomplete.

      It might just be a conflict with NixOS’ auto suggestsions/complete thing (likely is) but if Fish or Nushell has the same 3 features I need because, again, i’m a dummy then I’d happily switch.

    • qaz@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      2 days ago

      And it’s way slower than zsh as well.

      Did you intend to write this part like this?

      • tyler@programming.dev
        link
        fedilink
        English
        arrow-up
        8
        ·
        edit-2
        2 days ago

        No I’m really tired and I think I backspaced and fished it up. OK I’m leaving that autocorrect cause it’s funny

        Edit: updated and fixed to say “it’s way slower than fish”

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

        I have no idea where you guys are seeing any slowness for any shell, but perhaps worth pointing out that fish was recently rewritten (published as version 4.0), so if you are interested in it, might be worth another look.

        • Ghoelian@piefed.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 day ago

          My zsh is pretty slow sometimes, but that’s because I’ve enabled all kinds of git stuff in my prompt. I wish it could do those git commands asynchronously.

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

            Ah right, the prompt would probably make a difference.

            I use Starship which probably does the Git commands asynchronously. The code at least mentions multiple threads and the Git stuff is split into multiple modules, which I would assume to be fetched in parallel.
            Either way, I have all the Git modules enabled and the prompt still display as quickly as my finger releases the Enter key, so definitely good enough for me. 🙂

            • Ghoelian@piefed.social
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 day ago

              Good point, I never even considered looking for a different prompt. Starship looks interesting, trying that today!

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

          Yeah could well be, it was some time ago I tried it. I am happy with zsh though, and as always, use what you like.

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

        How many plugins do you have? To get the same features that fish has I was seeing multi second loading times with zsh with every plugin system I tried.

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

        I had the opposite from you, zsh slow even with a couple plugins (or no plugins). Like, I could see a delay with my naked eye between opening the terminal emulator and the prompt appearing. Not with bash or fish though. 👌