21 Nov 2026 · Setup · 4 min read
One command, ready to build: how we set up a Mac
Computer takes a fresh MacBook to its first signed commit with one command, and a second run changes nothing.

Computer is the script we use to set up a Mac at Kuberdon. You clone one repo, run one command, and the laptop ends up with the apps we work in, the tools we build with and a short list of settings. It's open source under MIT at kuberdonhq/computer, and the idea comes from thoughtbot's laptop script.
git clone https://github.com/kuberdonhq/computer.git ~/Developer/computer
cd ~/Developer/computer
./computer
On a brand new Mac the first git asks for Apple's command line tools. Computer checks for them as well: if they're missing it starts the installer and stops, and you run it again once that's done.
When it finishes it prints what is left for you, numbered: sign in to GitHub, turn on a setting in 1Password, that kind of thing. Do those, run it again, and it ends with "All set".
Every step checks first
Take the git settings. Each one is only written when it differs from what is already there:
git_set() {
[ "$(git config --global "$1" || true)" = "$2" ] || run git config --global "$1" "$2"
}
git_set init.defaultBranch main
git_set pull.rebase true
git_set push.autoSetupRemote true
Lines added to ~/.zprofile and ~/.zshrc work the same way: they're only appended when a grep doesn't find them. So you can run Computer on a new laptop or on one that's a year old. It adds what's missing and leaves the rest alone.
There are two modes that change nothing. ./computer doctor says what is missing or out of date, and ./computer --dry-run prints every command it would run. CI uses both: shellcheck lints the script on Linux, then a GitHub-hosted macOS runner does a dry run and a doctor run on a Mac that isn't set up.
One Brewfile
The apps and tools come from a single Brewfile, installed with brew bundle. A new tool for everyone is one more line:
# Work
cask "1password"
cask "claude-code"
cask "conductor"
cask "linear"
# Building apps
cask "xcodes-app"
brew "fastlane"
brew "mobile-dev-inc/tap/maestro"
That's a few lines of it. The full file also has, among others, Notion, Superhuman, Chrome, Rectangle, Visual Studio Code, Docker, CocoaPods, Watchman, mise for Node, pnpm, the Supabase CLI, jq and ImageMagick.
Maestro, a tool for mobile UI tests, is the one formula that lives in its maker's tap instead of Homebrew's own. Homebrew only loads formulae from taps you trust, so Computer trusts that single formula and not the rest of the tap.
No private key on the disk
SSH keys live in 1Password, and 1Password's SSH agent signs every commit. Computer points ~/.ssh/config at the agent and tells git to sign with it:
git config --global gpg.format ssh
git config --global gpg.ssh.program "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
git config --global user.signingkey "<your public key>"
git config --global commit.gpgsign true
If 1Password has no SSH key yet, Computer makes an Ed25519 key there with the 1Password CLI. The private half never leaves 1Password. Then it adds the public half to GitHub as a signing key, so your commits show up as Verified. Reading and adding signing keys needs a GitHub permission that gh doesn't ask for by default, so a browser window opens once to grant it.
Computer never touches a password. On the first run it opens 1Password, Claude, Notion, Linear and Superhuman for you to sign in, and gh auth login for GitHub. A second run leaves your apps alone.
What we got wrong on day one
We wrote Computer on 10 November and merged nine pull requests into it that same day. Most of them were fixes:
- Linear's Homebrew cask had a new name, and one failed install stopped the whole run. Now a failed install becomes a to-do and the run keeps going.
- The path to 1Password's agent socket has a team id in it, and the first version had the wrong one.
- The first version didn't check that the agent actually answered. Now it runs
ssh-add -l, which exits with 2 when it can't reach the agent. - When the agent has no keys,
ssh-add -Lprints "The agent has no identities." on standard output. Computer saved that sentence as the git signing key, and every commit after it failed.
The fix for the last one is two small functions. Only a line that looks like a public key counts, and a bad value an older run saved is cleared so commits work again:
agent_key() { SSH_AUTH_SOCK="$OP_AGENT_SOCK" ssh-add -L 2>/dev/null | grep -E '^(ssh-|ecdsa-|sk-)' | head -1 || true; }
valid_key() { printf '%s' "$1" | grep -qE '^(ssh-(rsa|dss|ed25519)|ecdsa-sha2-|sk-)'; }
The settings, and the look
The macOS settings are few on purpose, the ones that get in the way of work: file extensions and the path bar in Finder, screenshots in their own folder, fast key repeat, no smart quotes, smart dashes or autocorrect, and new documents saved to disk instead of iCloud. They're all in macos/defaults.sh. Then it downloads the Kuberdon wallpaper from our press kit and sets it.
Make it yours
Fork the repo, or keep your own extras in ~/.computer.local. Computer runs that file last when it exists, so anything personal stays out of the public repo:
# ~/.computer.local
brew install --cask spotify
defaults write com.apple.dock autohide -bool true

Jensen Bernard
Founder, Kuberdon
Jensen started Kuberdon to build a portfolio of mobile apps that make everyday life more seamless. Right now most of his time goes to Kalendars, a calendar for iPhone (Mac coming soon) and the first app in the portfolio. He has a master’s in computer science from KU Leuven, and works from Leuven, Belgium.
