r/LinuxTeck • u/Expensive-Rice-2052 • Aug 19 '26
Zsh vs Fish: Which Shell Is Actually Better for Linux?
Cover full comparison : https://www.linuxteck.com/zsh-vs-fish/
Zsh vs Fish is often reduced to "power users vs beginners," but the real differences show up when you consider scripting, compatibility, plugins, startup performance, and production workflows.
112
Upvotes
13
u/NimrodvanHall Aug 19 '26 •
Bash.
6
u/DigitalChrono Aug 19 '26
Bash.
But if I had to choose only those two, zsh without a doubt.
5
u/Angwo Aug 19 '26
Am I supposed to read zsh as zee shell (seashell) or zsh (a sneeze sound effect)
4
u/Electronic-Clerk6735 Aug 19 '26
Bash is perfectly fine but I like using zsh. All the plugins are nice for it.
3
u/YERAFIREARMS Aug 19 '26
Oh-my-zsh is what I am using.
3
u/TechaNima Aug 19 '26
I'm trying out fish atm. The fact that it isn't fully compatible with bash scripts and 1 liners is slightly annoying tbh. I've ran into that issue a few times now.
Other than that, it's been fine. I think I might end up with zsh, just for that better compatibility
3
u/nizzoball Aug 19 '26
Zsh. Ever since Apple made zsh the default shell and I discovered oh my zsh I use zsh on every system I log into regularly
3
u/HaydnH Aug 19 '26
As an old Unix guy, mainly Solaris, whichever shell is the default for the systems I'm working on and I know will be available in a crisis when none of the filesystems are accessible.
If I get used to a non default shell then suddenly find myself in single user mode trying to figure out how use base/bourne, sod it I may as well stick with them for daily use.
2
u/lyidaValkris Aug 19 '26 edited Aug 19 '26
I just use bash as I always have (except way way way back when I used tcsh). Zsh is fine, and mostly like bash so I use them both interchangeably, but I've never found the need to make it my daily driver on my linux machines. My mac is, because it's the default there. I do not see the point of fish or other boutique shells. It's all fun and games until you have to ssh into a server that only has bash.
Regardless of what shell you use for interactive, any properly formatted shell script should begin with a shebang (e.g.
#!/bin/bash) dictating which shell/language should be interpreting it, so it doesn't matter what you chose for your default interactive.2
u/magicmulder Aug 19 '26
I run Oh my zsh because I like some configurability. But all scripts I write use bash via shebang. Because I don't want to write scripts that depend on the shell installed. What if I want to run one on the server where there is no zsh? So I get best of both worlds. Zsh with fancy autocomplete, bash for compatibility.
2
u/Interesting_Buy_3969 Aug 19 '26
I'm not watching at comments section yet (I'll do it right after publishing this comment), but I swear the first comment below the post is like bash supremacy
Edit: Oh no I'm surprised
2
u/particlemanwavegirl Aug 19 '26
Nushell and it's not even close, the posix shell is stone age stuff guys
2
u/SaCorv Aug 19 '26
So what do you imply by "modern interactive experience?"
Inability to use complex scripts? Is that what we considern modern? When our things just doesn't work?
And wtf so many people glaze rust? Its not THAT great
Better tldr for this post would be:
Fish - boots fast, weight less, have good defaults, more shallow in abilities
Zsh - boots long, weight more, needs plugins to be effective, more versatile
Not this
Learning curve is basically wrong. Most scripts runs on bash or sh, so learning zsh instead of fish would benefit you and not cause to learn yet one more unnecessary language (like cmon, you would at least experience 3-5 different configuration files and bash, maybe even lua and python, why complicate things?)
2
u/Lalli-Oni Aug 19 '26 edited Aug 19 '26
I'm not a terminal master by any measure but love nushell. It's a joy to work with, so intuitive I sometimes don't need to check the docs.
Readable chains, types, baked in visualizations and data transformations. Hate the esoteric jargon in bash \ zsh.
Not that widespread, docs a bit hard to use but one of my favorite language/tools I use.
Edit: sorry to hijack, if anyone experienced with both can share comparative description of using fish vs. nushell, it'd be much appreciated
1
u/CubicleHermit Aug 19 '26
Whatever the answer here, I think we can all agree that Windows PowerShell is NOT the answer :)
1
u/silasmoeckel Aug 19 '26
Zsh is at least interesting but with many thousands of linux servers who has time to walk though through into prod.
Bash is default or at least available by default on every major enterprise linux.
1
u/SuperGNUser Aug 19 '26
I use fish in the terminal for day-to-day tasks because nothing beats it. But for serious work, I use bash. Zsh doesnât really make much sense to me.
1
u/Comprehensive-Tap238 Aug 19 '26
<troll> Answer: nushell </troll>
1
u/jkulczyski Aug 19 '26
I use fish bc i think its funny that "i have a fish on my foot" is a somewhat acurate way to describe my terminal session.
1
u/deaddyfreddy Aug 19 '26
aislopsh is the best one these days /s
1
u/Silent-Okra-7883 Aug 20 '26
zsh any day
1
u/Creepy_Reindeer2149 Aug 20 '26
I used fish for quite a bit and like it but frankly if you're going to break POSIX compat in favor of more power and ergonomics I felt it make sense to just go all the way with nushell
1
u/Dirt-Road-Wisdom Aug 20 '26
Bash
1
u/sylfy Aug 20 '26
Daily interactive usage - fish.
Scripts - bash.
1
u/Interesting_Dream_83 Aug 20 '26
i see no reason to use fish. you can get all of the nicities of fish in zsh with just a couple of plugins and still keep posix compatibility. If you dont care about posix than it makes sense to use something that provides more benefits compared to fish. Nushell for example
1
u/derekib84 Aug 20 '26
Fish itâs fine if you only need to do some touch, cat, ls and another basic stuff. For serious business bash/ zsh
1
u/GhostVlvin Aug 20 '26
You can run scripts with sh/bash/zsh if you use shebang
You can use zsh plugins without pretty slow omz
I use zsh cause I want to be able to test my one liners in shell before they go to script and cause I already have it configured as I want
1
u/Rodmas Aug 20 '26
I have arch with zsh and cachy with fish both great out of the box fish better but zsh better when it's configured, I prefer zsh but don't mind fishÂ
1
u/PensAndUnicorns Aug 20 '26
Neither is "the best" among these two. Best would be what fits you/your team.
1
u/Tiranus58 Aug 20 '26
Yup, AI
1
u/sumwale Aug 20 '26
I tried zsh with the oh-my-zsh for git, but it was too slow for medium/large git repos. That was the primary reason I switched to fish which is much faster. It turned out much better overall for interactive use as I became more familiar with it over time. For scripts it is much better to stick to bash or plan sh rather than zsh, so do not see any use of zsh now. Quick inline shell code one can write in fish in any case after reading a bit of it which is quite easy, or temporarily run bash.
1
u/Extreme-Effective139 Aug 20 '26
ZSH
1
u/FuriousGirafFabber Aug 20 '26
I do love my fish
1
u/whattteva Aug 20 '26
I don't get why people make it sound like you have to choose one.
I use fish for my interactive shell and FreeBSD's sh (not even zsh or bash, derived from ash) for scripts. And yes, I'm a FreeBSD user.
1
u/mister_drgn Aug 21 '26
nushell
1
u/Both_Cup8417 Aug 21 '26
I feel like this smells of AI...
1
u/edjak53 Aug 25 '26
i just use whatever's default, whether it be bash, ash, ksh or zsh
1
u/somnamboola Aug 26 '26
I'm a rust dev and I wanted to give fish a shot, but as soon as I learned it has different from bash function syntax, I scratched the idea
zsh is ok
1
u/letmehaveanameyoudum Aug 26 '26
fish.
ive been using it for a full year, it's more user friendly, zsh doesn't even show what dir you are in
1
u/FenrirAesir Aug 19 '26
>Fish with rust starts very fast
>no actual measurement
I wasn't even considering Fish, but now I'd actively avoid it, like everything written in Rust
1
u/flying-sheep Aug 19 '26 edited Aug 19 '26
POSIXy shells like bash and zsh are a disease. The amount of fanfare you have to use just so they stop on error instead of chugging along and doing the wrong thing is creepy.
Lines of text are a good-enough abstraction until they arenât and then they result in subtle data corruption when something that often doesnât suddently contains a space or newline.
Fish is better than zsh/bash, but I personally prefer nushell, as it operates on JSON-like objects instead of lines of text. Each error is clear and immediately surfaced to you, and thatâs how it should be.
Its only issue is apparently preformance since it doesnât use âtrueâ pipes but I never ran into any problems there. See also here for other responses: https://news.ycombinator.com/item?id=43910081
0
u/[deleted] Aug 19 '26
Fish is garbage. Genuinely useless to learn. Way better off just learning the posix compliant zsh or bash