TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How I set up new MacBooks

53 点作者 cmpit大约 1 个月前

13 条评论

enescakir大约 1 个月前
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 未加载
sandreas大约 1 个月前
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 未加载
montroser大约 1 个月前
PSA: &quot;setup&quot; is a noun, and &quot;set up&quot; is the verb you&#x27;re looking for.
评论 #43792602 未加载
rcarmo大约 1 个月前
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.
broshtush大约 1 个月前
nix-darwin is a thing, and like all nix tools. It tackles this exact problem
评论 #43792280 未加载
评论 #43792636 未加载
评论 #43796222 未加载
评论 #43802097 未加载
joeyagreco大约 1 个月前
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 未加载
bombcar大约 1 个月前
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 未加载
kartikarti大约 1 个月前
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.
frizlab大约 1 个月前
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 未加载
moribvndvs大约 1 个月前
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 未加载
corv大约 1 个月前
The missing magic incantation to create your Brewfile:<p>brew bundle dump
评论 #43801600 未加载
评论 #43792758 未加载
评论 #43792673 未加载
评论 #43793042 未加载
bhouston大约 1 个月前
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 未加载
dankobgd大约 1 个月前
Just use Ansible, it&#x27;s the best for installing and configuring things
评论 #43792818 未加载
评论 #43793098 未加载
评论 #43792682 未加载
评论 #43794478 未加载
评论 #43792389 未加载