Skip to content

feat: add one-stop machine setup - #6

Merged
sunwrobert merged 5 commits into
mainfrom
feat/machine-setup
Nov 9, 2026
Merged

sunwrobert merged 5 commits into
mainfrom
feat/machine-setup

Conversation

@sunwrobert

Copy link
Copy Markdown
Owner

Problem

Setting up a new Mac meant reinstalling apps, command line tools and shell config from memory. Nothing in this repo recorded what I use.

Change

Adds a setup/ folder with one script that sets up a new Mac.

git clone https://github.com/sunwrobert/knowledge-base.git ~/Repositories/knowledge-base
~/Repositories/knowledge-base/setup/setup.sh
File What it does
setup/setup.sh Installs Homebrew, the Brewfile, Oh My Zsh and its two plugins, the dotfiles, Node 24, the global npm and bun packages, Claude Code, and links this repo's skills. Safe to run again.
setup/Brewfile Command line tools and the 19 apps that have a Homebrew cask.
setup/dotfiles/ zshrc, zprofile, gitconfig, Zed settings and Herdr config.
setup/AGENT_PROMPT.md Prompt for a coding agent to run the script, verify the result and list the manual steps left.
setup/README.md How to run it and the manual steps: logins and apps with no cask.

Secrets

  • No keys or tokens are in the repo. zshrc sources ~/.zshrc.local, which the script creates with mode 600 and git never sees.
  • No OpenRouter key goes in the shell config. Agents get their credential from ori login, and ori alias routes plain pi, claude, codex and omp through Ori.
  • ~/.gitconfig stays a real file that includes setup/dotfiles/gitconfig, so gh can write its credential helper there without changing the repo.
  • Employer-managed software and the Ferry config are left out.

Validation

  • bash -n setup/setup.sh passes.
  • Every cask name in the Brewfile resolves with brew info --cask.
  • The script has not been run end to end. The first run on a new machine is the real test.

@sunwrobert
sunwrobert merged commit 75cb982 into main Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant