Recently Apple made a surprising announcement: due to licensing issues with Bash, they decided to change the default shell on macOS from Bash to ZS...
For further actions, you may consider blocking this person and/or reporting abuse
Fish is a nice and decent shell.
But if I made the switch I had to unlearn
&&
and have to give up niceties like!-3
.At that point, I was done with fish. It's not fish's fault, but I am too lazy 😎
Fish docs
Thank you for your kind advice and hint to the docs.
No problem! I should thank you because I didn't know about !-3 before reading your comment. I was just sharing my findings :D
The equivalent of
&&
is; and
. However, for!-3
, I never use that anyway, so I'm not sure what the equivalent is :D; breaks if the call on the left ends with error?
Then it's simply "; or" instead of "; and" in fish.
Drink the Kool aid! Become one of us. Come over to the dark side. However you want to put it. Long time ZSH user here prob 10+ years. First thing I do on a system that doesn't have zsh, Install zsh, then pull my zshrc file from my server. One you switch, you will never go back. zsh's tab completion and case insensitivity for me makes it the ultimate shell out there, far more superior than bash will ever be. Altho I still write all my shell scrips in bash, I will forever be a zsh user.
Just my 2cents
If tab completion and case insensitivity are your strong points to defend zsh, don't ever dare to try fish shell.
Now in all seriousness, In my opinion, it doesn't matter which one, the important thing is to use whatever makes you comfortable in the command line. I like the 3 of them, all have strong points and weaknesses.
Back when I tried ZSH, I was having trouble with completions: they would randomly stop working. I finally gave up spending the effort hunting the problem down each time. Perhaps it is better now, who knows!
Also, as mentioned above: I regard Bash as only offering slightly less than ZSH, and Bash usually comes by default on the systems I have to remote into. The cost of adopting ZSH is usually too high for me in my case.
I didn't learn bash well until I switched to fish. I think it's because I could finally do complex things in the shell, and then to share them, I had to figure out how to translate them back into bash.
Best fish feature, imo, is it's multiline support. I often compose scripts right in the shell.
I use programs over aliases, though (eg I would have a program
gc
) because these can be invoked from either shell, and even from non-shell processes.Fish is a much more sane scripting language than bash, or any POSIX shell, for that matter.
And I love orange pencils with slightly soft tip.
Seriously, you prefer using Bash over ZSH, we understand, but why devoting such a long post telling us about? What's next? Color theme of VSCode?
Because this is what he felt like writing about and it's his blog post?
😩
I respect his post in his blog, I just don't agree each of us start writing about his personal preferences in long posts, holding no useful information. You love bash? Great, use it, master it, share tips and tricks with us, not why you like it more than ZSH. I spent my time reading this post and at the end just understood my time was wasted on another "I prefer " writing.
Blog posts are a personal writing. That's literally the point of them. Some people use them for education, to deliver value in some way. Others talk about what interests them. All applicable uses of the platform.
You're just being grumpy and unreasonable.
I have only switched to zsh a couple of months ago and love it, because of zsh I actually spend more time in my terminal in stead of using GUI applications for everything.
I was wondering what OS has bash locked in?
Pretty sure "locked in" is referring to being unable to install. Example being a set of production servers. You can't just install ZSH on every server you connect to.
Underrated comment, right here!