TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Use zsh as the default shell on your Mac

430 pointsby jhackalmost 6 years ago

25 comments

Newtonipalmost 6 years ago
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.
评论 #20090744 未加载
评论 #20091821 未加载
评论 #20093699 未加载
评论 #20091136 未加载
评论 #20090623 未加载
评论 #20091337 未加载
评论 #20125411 未加载
reilly3000almost 6 years ago
zsh is the default shell on all of my machines because I make it so. I think the tab completions that ohmyzsh provides have saved me on the order of 40 hrs &#x2F; year, and helped me learn new APIs much easier, since you can see all options without the --help.<p>If you haven&#x27;t tried it, I cannot recommend zsh + plugins enough. Only install that you actually use, otherwise it can slow start time a bunch.<p>Here is a list of the plugins that are available: <a href="https:&#x2F;&#x2F;github.com&#x2F;robbyrussell&#x2F;oh-my-zsh&#x2F;wiki&#x2F;Plugins" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;robbyrussell&#x2F;oh-my-zsh&#x2F;wiki&#x2F;Plugins</a><p>I especially appreciate git+git-extras, web-search (`google my query`), docker, npm, and dirhistory.
评论 #20091559 未加载
评论 #20094411 未加载
jlaweralmost 6 years ago
Guess they had to go somewhere as Apple&#x27;s unwillingness to have GPLv3 code effectively killed off bash updates.<p>Slightly disappointed, but guess they had to go somewhere and zsh is going to be well supported going forward
评论 #20093107 未加载
评论 #20090823 未加载
duskwuffalmost 6 years ago
Ooh, and they&#x27;re throwing in dash too!<p>&gt; To test script compatibility with Bourne-compatible shells in macOS Catalina, you can change &#x2F;var&#x2F;select&#x2F;sh to &#x2F;bin&#x2F;bash, &#x2F;bin&#x2F;dash, or &#x2F;bin&#x2F;zsh. If you change &#x2F;var&#x2F;select&#x2F;sh to a shell other than bash, be aware that scripts that make use of bashisms may not work properly.
kccqzyalmost 6 years ago
It&#x27;s probably because the default bash is a very ancient version before FSF transitioned to GPLv3. That said, I&#x27;ve been using zsh for a long time and this is a great change.
tannhaeuseralmost 6 years ago
While Apple is at modernizing their POSIX userland, they should also consider other ancient software they&#x27;re using. For example, last I looked on Apple&#x27;s Darwin Open Source site (about a year or two ago), they shipped a really old and buggy awk (nawk) version.
评论 #20092870 未加载
评论 #20093193 未加载
dontbenebbyalmost 6 years ago
I&#x27;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)<p>Will this break all those or are bash scripts and zsh scripts basically interchangeable?
评论 #20091823 未加载
评论 #20091718 未加载
评论 #20092706 未加载
hestefiskalmost 6 years ago
I still fondly remember when tcsh was the default shell. Like a real BSD Unix.
评论 #20091883 未加载
评论 #20094144 未加载
评论 #20090568 未加载
评论 #20090969 未加载
SomeOldThrowalmost 6 years ago
I&#x27;m really surprised they went with zsh rather than fish. I guess they want to preserve the ability for existing `source` scripts to work.
评论 #20090610 未加载
评论 #20090304 未加载
评论 #20090319 未加载
评论 #20091464 未加载
评论 #20092354 未加载
评论 #20090492 未加载
评论 #20091426 未加载
评论 #20090437 未加载
yokohummer7almost 6 years ago
zsh is better than bash in nearly all aspects, at least in my use cases, so this is a great news for me. Is there anything that can be done in bash but not in zsh?
评论 #20090703 未加载
评论 #20091004 未加载
评论 #20093034 未加载
评论 #20090843 未加载
mmastracalmost 6 years ago
From 2012 - Apple&#x27;s great GPL purge: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3559990" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3559990</a><p>Short-sighted move considering Microsoft is actively looking to ship a Linux kernel in Windows.
评论 #20091900 未加载
评论 #20092044 未加载
rsynnottalmost 6 years ago
Maybe I’m imagining things, but wasn’t zsh also the default until MacOS 10.4 or so?<p>Edit: I was misremembering things. tcsh until 10.3.
评论 #20090919 未加载
samgranierialmost 6 years ago
Fantastic! Any time I get a new mac I install homebrew ZSH and edit &#x2F;etc&#x2F;shells to add it in.
评论 #20097781 未加载
dandigangialmost 6 years ago
Had no idea they were shipping zsh in newer versions. Neat! Wonder why they don&#x27;t do Bash 4.x.x+ versions by default. Or, do they?
评论 #20090697 未加载
评论 #20090922 未加载
youesehalmost 6 years ago
For the uninitiated: why is zsh better than bash?
评论 #20090396 未加载
评论 #20090556 未加载
评论 #20090455 未加载
评论 #20090683 未加载
评论 #20090894 未加载
stuntalmost 6 years ago
I use Fish. So not an exciting news for me.
评论 #20093551 未加载
eeeeeeeeeeeeealmost 6 years ago
I switched to ZSH a few years ago because some of my coworkers were using it. I never found it useful enough to use it over Bash. So I switched back to Bash. I’d rather have the shell be identical to the one running on the servers I use.
paxysalmost 6 years ago
As a happy zsh user, I&#x27;m glad that this will finally force every application and software package in the world to stop assuming that bash is the default (and only) shell.
latexralmost 6 years ago
Finally!<p>Though I will say I’m surprised. I’ve opened a radar suggesting this change and it was closed with (paraphrasing) “won’t do it as the user can easily change the shell, I myself do it”.
jhanschooalmost 6 years ago
I had trouble updating iTunes once because my shell was set to zsh, and it took me quite a while to debug what went wrong. I recommend that when this switchover occurs, users should temporarily switch to bash if they encounter an installer that does not work.
foucalmost 6 years ago
I&#x27;ve noticed that sometimes there&#x27;s oddities with zsh &amp; homebrew or rvm that force me to drop into bash in order to run a command. With apple standardizing on zsh, that should finally resolve these bugs.
bojanzalmost 6 years ago
zsh users, good time to try out my favorite prompt, Pure: <a href="https:&#x2F;&#x2F;github.com&#x2F;sindresorhus&#x2F;pure" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sindresorhus&#x2F;pure</a><p>Nowadays that&#x27;s the only thing I run on top of zsh, which makes the shell significantly faster than with oh-my-zsh (and its kitchen sink).
geuisalmost 6 years ago
I’m only familiar with working in bash and bash scripts. What do I need to know about the differences with zsh?
pierreprinettialmost 6 years ago
oh crap. Yet another outdated package bolted into the OS.
caiobalmost 6 years ago
Any beta testers here able to confirm whether Terminal.app supports True Color now?
评论 #20092588 未加载
评论 #20093695 未加载