Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
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.
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.
Did you intend to write this part like this?
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”
Had the opposite experience, fish was way slower than zsh for me.
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.
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.
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. 🙂
Good point, I never even considered looking for a different prompt. Starship looks interesting, trying that today!
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.
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.
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. 👌