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.

How I set up new MacBooks

53 pointsby cmpit26 days ago

13 comments

enescakir26 days ago
When you search for "dotfiles" on GitHub, you'll find plenty of good script examples for setting up a new computer. Since Apple doesn't provide good documentation on what you can configure with "defaults" variables, these examples are a goldmine.
评论 #43792277 未加载
sandreas26 days ago
Jeff Geerling has a phenomenal ansible playbook to setup his macs:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;geerlingguy&#x2F;mac-dev-playbook">https:&#x2F;&#x2F;github.com&#x2F;geerlingguy&#x2F;mac-dev-playbook</a>
评论 #43795317 未加载
评论 #43794456 未加载
montroser25 days ago
PSA: &quot;setup&quot; is a noun, and &quot;set up&quot; is the verb you&#x27;re looking for.
评论 #43792602 未加载
rcarmo25 days ago
I have <a href="https:&#x2F;&#x2F;github.com&#x2F;rcarmo&#x2F;ground-init">https:&#x2F;&#x2F;github.com&#x2F;rcarmo&#x2F;ground-init</a> - which I also use for Macs, although via a bit of a hack right now. I should update it to a brewfile-like setup...<p>Anyway, my $0.02 is that doing fully automated installs on Macs is a fast track to having weird Finder and settings bugs (if not worse), so I mostly just install packages and very seldom (if ever) apply settings via the CLI -- I&#x27;ve had Apple break things across too many OS releases to find that a worthwhile long-term strategy, and most of the time I&#x27;d rather just use Migration Assistant (across Macs with equivalent OS versions) or configure settings manually for a new OS release.<p>Edit: just went and updated the above script to support brew&#x2F;cask installs on macOS. Settings can go into the runcmd section.
broshtush26 days ago
nix-darwin is a thing, and like all nix tools. It tackles this exact problem
评论 #43792280 未加载
评论 #43792636 未加载
评论 #43796222 未加载
评论 #43802097 未加载
joeyagreco25 days ago
The best way to do it!<p>I have a file that sets my MacOS Defaults: <a href="https:&#x2F;&#x2F;github.com&#x2F;joeyagreco&#x2F;dotfiles&#x2F;blob&#x2F;main&#x2F;.macos">https:&#x2F;&#x2F;github.com&#x2F;joeyagreco&#x2F;dotfiles&#x2F;blob&#x2F;main&#x2F;.macos</a><p>And a file to remap some keys: <a href="https:&#x2F;&#x2F;github.com&#x2F;joeyagreco&#x2F;dotfiles&#x2F;blob&#x2F;main&#x2F;.macos_key_remaps.json">https:&#x2F;&#x2F;github.com&#x2F;joeyagreco&#x2F;dotfiles&#x2F;blob&#x2F;main&#x2F;.macos_key_...</a><p>And apply the remaps: <a href="https:&#x2F;&#x2F;github.com&#x2F;joeyagreco&#x2F;dotfiles&#x2F;blob&#x2F;b5b819c9bcde2e3aff8e8f1a28a9bb9c21c2b2f3&#x2F;zsh&#x2F;sourcing.zsh#L88">https:&#x2F;&#x2F;github.com&#x2F;joeyagreco&#x2F;dotfiles&#x2F;blob&#x2F;b5b819c9bcde2e3a...</a>
评论 #43802076 未加载
评论 #43793009 未加载
bombcar26 days ago
I used to hand-setup each new Mac, but lately (last decade or so; gosh this M1 Pro is absolutely ancient) I just let the migration assistant do the needful.<p>Storage is too cheap for me to spend time optimizing it anymore. I’m sure I have cruft somewhere, but it doesn’t bother me.
评论 #43792200 未加载
评论 #43792160 未加载
kartikarti25 days ago
Just in case anyone is lost in all the `defaults write ...`, I really recommend <a href="https:&#x2F;&#x2F;macos-defaults.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;macos-defaults.com&#x2F;</a><p>It&#x27;s a really nice overview for (almost) all of the options.
frizlab26 days ago
I have an open-source script which installs all my conf <a href="https:&#x2F;&#x2F;github.com&#x2F;Frizlab&#x2F;frizlabs-conf">https:&#x2F;&#x2F;github.com&#x2F;Frizlab&#x2F;frizlabs-conf</a>
评论 #43792189 未加载
moribvndvs25 days ago
I use a setup script that installs brew, a brewfile, runs chezmoi to setup terminal and defaults, pulls some secrets&#x2F;keys out of 1Password, and good to go, other than manually having to log into certain things. Everything in a personal dotfiles repo. I do have to occasionally diff my brewfile and terminal config and push that up, I should probably spend a little time figuring out how to automate that.
评论 #43794529 未加载
评论 #43794461 未加载
corv25 days ago
The missing magic incantation to create your Brewfile:<p>brew bundle dump
评论 #43801600 未加载
评论 #43792758 未加载
评论 #43792673 未加载
评论 #43793042 未加载
bhouston25 days ago
Is there any shell&#x2F;bash extensions that just allow you to use LLMs easily from the command line? Basically like warp but just a simple extension instead of a full iterm replacement?
评论 #43794565 未加载
dankobgd26 days ago
Just use Ansible, it&#x27;s the best for installing and configuring things
评论 #43792818 未加载
评论 #43793098 未加载
评论 #43792682 未加载
评论 #43794478 未加载
评论 #43792389 未加载