Live data from Hacker News

Use zsh as the default shell on your Mac

support.apple.com

21–30 of 252 posts

Re: Use zsh as the default shell on your Mac

#22
post #13

For the uninitiated: why is zsh better than bash?

Tab autocompletion, especially for command-line flags, is great. Try it out with 'ls -' and you'll see all the options and a description. The z command to cd to common directories without typing the full path seems useful, but I've never gotten it to work.

Re: Use zsh as the default shell on your Mac

#23
post #19

Earlier quoted context omitted.

> Most Terminal users might not even notice the shell changed from Bash to ZSH. If that's an argument in favor of ZSH, I think I've missed the point.

It’s an argument in favour of ZSH over Fish. It will cause less disruption, while providing better features than the current default.

> while providing better features than the current default.

Barely—it doesn't address any fundamental issues with bash, it's basically a coat of paint.

It does make sense that tech companies are only into disruption if they can profit from it.

Re: Use zsh as the default shell on your Mac

#26
post #4

Earlier quoted context omitted.

Why would they use fish? Fish is nice and all, but zsh is a much more mainstream shell.

Since when is mainstream better? Why did they choose zsh? They don't justify that either. It's just odd to pick one post-bash shell but not the other when they have very similar feature sets—autocomplete, persistent global variables, attention to end-user quality. EDIT: apparently zsh doesn't have persistent or global variables, my bad.

There's already a lot of community support available for zsh.

Plenty of developers are using oh-my-zsh either for just the plugin support or for the very popular iterm+powerlevel9k+agnoster theming.

Re: Use zsh as the default shell on your Mac

#28
post #18

Earlier quoted context omitted.

It's really annoying to learn bash, so I don't see how that works in zsh's favor.

To be honest I'm hesitant to respond to you because of the level of spittle-flecking you're doing in this thread but I would guess that, by virtue of bash being the standard Mac shell and zsh being a close-enough-but-better replacement, the necessary learning has already happened and overwhelmingly more Mac terminal users will be at least functional with it immediately.

Not the OP, but I agree with both of you actually. It's easier in many ways to run a POSIX-compliant shell with a more "familiar" scripting language to bash users (especially when it comes to running existing scripts or one-liners you find online).... buuuut at the same time I think it's pretty clear that fish's scripting language is much more modern and "better" in many ways.

Re: Use zsh as the default shell on your Mac

#29

Earlier quoted context omitted.

Mainstream is often better in terms of unofficial support/learning resources, and by definition better in terms of familiarity/market share. For something like a shell, forcing a niche choice needs justification when it's not clearly better than the alternatives.

Fish is clearly better than the alternatives.

Well, fish is not compatible to bash. Users would suddenly face bash-one-liners that they find on StackOverflow to stop working.
Post reply on HN