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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How do you manage your macOS settings / config for dev?

2 点作者 hamburglar1将近 4 年前
If you have multiple macs for various jobs &#x2F; personal &#x2F; old ones. How do you keep the settings &#x2F; environments in sync? Are there any tools to help with this?<p>I have a few basics that I want on everything: - mouse and keyboard settings - magnet window manager with hot keys - standard git + bash alias &#x2F; configurations - custom tool bar - pinned&#x2F;hidden applications<p>Right now I just set everything up the same way and manage changes across all of them. For the git&#x2F;bash stuff I have a personal github repo that I can pull -&gt; run to reset.<p>Is there a way to automate this? I can&#x27;t really configure a full-fledge MDM given I don&#x27;t own some of these.<p>Would like to hear if anyway has any similar problems &#x2F; solutions

2 条评论

LukeBMM将近 4 年前
There&#x27;s a fair bit you can do to set config with scripting. I&#x27;ve only done this for initial setup (new machines at a small firm), but you may be able to find a good chunk of what you need and update&#x2F;run it as often as you&#x27;d like.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;mathiasbynens&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.macos" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mathiasbynens&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.macos</a>
daviddever23box将近 4 年前
It&#x27;s a perfect opportunity to brush up on your {scripting language of choice} skills, though there are some pitfalls on macOS (e.g., not being able to set some preferences until another preference has been set).<p>Meta, I treat my devices like containers; assume that everything is ephemeral, and regenerate the environment on a frequent basis. Old stuff collects in iCloud as an archive, though anything live must be source-controlled (GitHub, Bitbucket et al).<p>By the way, as this unfortunately has to be said, credentials are NOT stored in source control. E-mail signatures and response tablets ARE.<p>As for system-wide backups, I don&#x27;t do them (said the object storage guy); they&#x27;re far too precious an approach to storage that ultimately should be better focused (live &#x2F; archive &#x2F; ephemeral). That said, the overlay approach that macOS takes should be more conducive to layered state, for those that DO backup.