Personal macOS dotfiles managed with Dotbot.
This repo installs shell and tool configuration by symlinking tracked files into $HOME. Companion workflows manage Homebrew packages and selected app and macOS preferences.
installbootstraps the Dotbot submodule and appliesinstall.conf.yamlzsh/contains the main shell setup, sourced helper files, and prompt/tooling configgit/,vim/,ssh/,gpg/,conda/,hg/,pypi/,cursor/,starship/hold symlinked app configsclaude/holds shared and machine-specific Claude Code settings, merged into~/.claude/settings.jsonas a regular file; see Claude Code settingscodex/merges shared, machine, and private local settings into the app-writable~/.codex/config.toml; see Codex configurationhomebrew/contains Homebrew bootstrap andBrewfilehelpersaerospace/holds full machine-specific window manager configs; see AeroSpacepreferences/manages selected macOS, Orca, Stats, VS Code, Zed and machine-1 Choosy settings
install.conf.yaml currently links:
~/.zshenv,~/.zshrc,~/.zprofile~/.gitconfig,~/.gitconfig.local,~/.gitignore~/.vimrc~/.aerospace.toml, selected using.machine~/.ssh/config,~/.ssh/config.local, and the machine-selected 1Password agent config~/.gnupg/gpg.conf,~/.gnupg/gpg-agent.conf~/.condarc,~/.hgrc,~/.hgrc.local,~/.pypirc~/.config/starship.toml~/.cursor/sandbox.json~/.config/zed/keymap.json(complete array; existing files are backed up)
Clone the repo with submodules, restore the private settings, then run the installer:
git clone --recurse-submodules <repo-url> ~/dev/projects/dotfiles
cd ~/dev/projects/dotfiles
# Set this checkout's machine alias (choose the matching entry in machines.yaml).
printf '%s\n' machine-2 > .machine
./1password/sync.py restore
# On an existing Codex installation, inspect/export app changes before merging.
cd codex
make status
make export
git diff -- .
cd ..
./installUseful variants:
./install -v
./install --force-colorThe installer syncs and initializes the bundled dotbot/ submodule automatically before applying links.
It requires a valid .machine and restored private SSH config before making
changes. Both SSH wrappers select the 1Password agent and support encrypted
local keys with macOS Keychain; machine-2's agent key list starts empty. See
SSH setup for key selection and recovery.
Codex merge/export requires Homebrew's uv from the Brewfile. On a fresh Codex
installation with no live config, skip export. For a new worktree, use the
targeted Codex migration workflow
before running the installer, which also applies all other managed settings.
The shell setup is centered on zsh:
zsh/zshenv.symlinkloads Homebrew andfnmzsh/zprofile.symlinkreapplies Homebrew after macOSpath_helperzsh/zshrc.symlinkloadszinit, cachesstarship init, and sources allzsh/*.zshhelper files
Both machines use Apple Silicon with Homebrew at /opt/homebrew.
Homebrew and the tools in the Brewfile are required. Tool paths use
HOMEBREW_PREFIX, set by brew shellenv. zshrc resolves its symlink to locate
this checkout and uses starship for the prompt.
Git loads ~/.gitconfig.local after all shared defaults, so machine-specific
values take precedence. GPG is resolved through PATH; set gpg.program in
the local config if a machine needs a specific executable.
Bootstrap Homebrew:
homebrew/install.shManage packages from homebrew/Brewfile:
cd homebrew
make install-packages
make dumpdev-update also verifies the Homebrew Codex CLI signature and clears its quarantine attribute after upgrading. See Codex configuration for details.
Selected app settings use the explicit workflow in preferences/README.md. Stats and selected macOS settings are shared; Choosy is machine-1 only. iTerm uses a curated dynamic profile installed by Dotbot. The preference helper applies settings only when explicitly requested. Old Mackup backups remain in Git history.
- Put machine-specific or sensitive values in
.localfiles such asgit/gitconfig.local.symlink - Keep new managed files in their domain directory with a
.symlinksuffix - Add new links in
install.conf.yamlusing repo-relative paths - Use
create: truewhen a target parent directory may not exist
Examples already ignored from git include git/gitconfig.local.symlink, hg/hgrc.local.symlink, and pypi/pypirc.symlink.
Gitignored settings and the shared GPG signing key are backed up in 1Password.
Use 1password/sync.py with status, restore, or update
for machine-specific settings, and restore-gpg for the shared signing key.
1password/machines.yaml maps machine aliases to vaults
and items. See the private settings instructions for setup
and machine selection.
The gitignored root .machine file stores this checkout's machine alias as one
line. It is shared local configuration for repository tools; sync.py uses it
unless overridden with --machine.
- Create the source file in the appropriate directory with a
.symlinksuffix. - Add a mapping in
install.conf.yaml. - Run
./install. - Verify the symlink and the target application behavior.
- Do not edit
dotbot/; it is a vendored submodule. - Avoid committing secrets, private keys, tokens, or machine-specific credentials.