Live data from Hacker News

Use zsh as the default shell on your Mac

support.apple.com

121–130 of 252 posts

Re: Use zsh as the default shell on your Mac

#121
post #62

Earlier quoted context omitted.

What's your ??? That's homebrew, not Apple.

So? Apple doesn't ship updated packages. It never did. If you want updates, you use a package manager, not Apple's ancient crap. That's life.

> So? Apple doesn't ship updated packages.

Apple absolutely ships updated packages. They rarely ship super recent version, but Bash still stands out as the last version they ship is 3.2 from 2006 (4.0 was released in 2009).

By comparison, I believe Mojave ships zsh 5.3. Still outdated, but only by a few years (it was released in December 2016).

Re: Use zsh as the default shell on your Mac

#123
post #34

Any beta testers here able to confirm whether Terminal.app supports True Color now?

Can't answer that but on a related note, recent zsh fully supports true color. You could always use it in things like prompts with literal escape sequences but it'll also work for syntax highlighting etc and interpret colours in hex triplet form for you now.

Re: Use zsh as the default shell on your Mac

#124

I've never worked outside bash. I have a lot of simple bash scripts. (Usually just stringing together commands with the occasional pipe or output to file) Will this break all those or are bash scripts and zsh scripts basically interchangeable?

If they start with a shebang like `#!/usr/bin/env bash` indicating which shell they are written in, it should be fine.

As all shell scripts should be.

Re: Use zsh as the default shell on your Mac

#125
post #80

For those wondering why Apple is allergic to GPLv3 code: there is a clause in the license requiring you provide a way to run modified version of the software which would require Apple to let users self sign executables.

I've been building software with Homebrew for ages, where does signing come in?

The default bash on macOS is protected using SIP. Files covered by SIP can only be replaced by Apple-signed updates.

(Of course, one could disable SIP altogether.)

Re: Use zsh as the default shell on your Mac

#126
post #91

Earlier quoted context omitted.

I've moved on to Windows since last year. Besides terminal emulators being shit (which they're fixing now), worse PDF support and shit OS config management, there's really not much anymore that goes in favor of Macs. Their laptops are worthless junk at 40% markup, the OS gets buggier and more locked down with every version while Windows is on a clear trajectory of improvement and PC hardware gives real choice and inn…

Those seem like pretty big downsides to me, and I don't believe the new terminal marketing gimmick. I will admit Windows has been very attractive lately for gaming reasons, but from a development standpoint, MacOS still seems way ahead of Windows. I seriously considered it, but there would be too much I'd miss if I switched. There's some minor reasons too, like why does IntelliJ look ugly in Windows? It looks great i…

"from a development standpoint, MacOS still seems way ahead of Windows"

Sorry but have you heard of Visual Studio?

Re: Use zsh as the default shell on your Mac

#127

I've never worked outside bash. I have a lot of simple bash scripts. (Usually just stringing together commands with the occasional pipe or output to file) Will this break all those or are bash scripts and zsh scripts basically interchangeable?

I'd recommend to always use just POSIX shell syntax, or at least be aware when you're using bashisms. Bash additions don't buy you much, yet make your script unportable. And using bashisms will get you actually in trouble in practice, since Debian uses dash as default shell, and now Mac OS is using zsh. Considering that shell syntax development has practically ended in 1993, relying on bashisms just isn't worth it.

Re: Use zsh as the default shell on your Mac

#129
post #62

Earlier quoted context omitted.

What's your ??? That's homebrew, not Apple.

So? Apple doesn't ship updated packages. It never did. If you want updates, you use a package manager, not Apple's ancient crap. That's life.

Apple ships supported, stable packages. Like Debian and CentOS, yes, that means that sometimes you don't get the latest shiny version to play with.

Re: Use zsh as the default shell on your Mac

#130
post #91

Earlier quoted context omitted.

Those seem like pretty big downsides to me, and I don't believe the new terminal marketing gimmick. I will admit Windows has been very attractive lately for gaming reasons, but from a development standpoint, MacOS still seems way ahead of Windows. I seriously considered it, but there would be too much I'd miss if I switched. There's some minor reasons too, like why does IntelliJ look ugly in Windows? It looks great i…

"from a development standpoint, MacOS still seems way ahead of Windows" Sorry but have you heard of Visual Studio?

Everyone has heard of Visual Studio, and nobody that has to use it wants to. Just because you have Stockholm syndrome doesn't mean everyone else has to have it too ;-)
Post reply on HN