Skip to content
haxozaPublic

About

haxoza's dotfiles

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

dotfiles

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.

What's here

  • install bootstraps the Dotbot submodule and applies install.conf.yaml
  • zsh/ contains the main shell setup, sourced helper files, and prompt/tooling config
  • git/, vim/, ssh/, gpg/, conda/, hg/, pypi/, cursor/, starship/ hold symlinked app configs
  • claude/ holds shared and machine-specific Claude Code settings, merged into ~/.claude/settings.json as a regular file; see Claude Code settings
  • codex/ merges shared, machine, and private local settings into the app-writable ~/.codex/config.toml; see Codex configuration
  • homebrew/ contains Homebrew bootstrap and Brewfile helpers
  • aerospace/ holds full machine-specific window manager configs; see AeroSpace
  • preferences/ manages selected macOS, Orca, Stats, VS Code, Zed and machine-1 Choosy settings

Managed links

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)

Setup

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 ..
./install

Useful variants:

./install -v
./install --force-color

The 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.

Shell stack

The shell setup is centered on zsh:

  • zsh/zshenv.symlink loads Homebrew and fnm
  • zsh/zprofile.symlink reapplies Homebrew after macOS path_helper
  • zsh/zshrc.symlink loads zinit, caches starship init, and sources all zsh/*.zsh helper 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.

Homebrew

Bootstrap Homebrew:

homebrew/install.sh

Manage packages from homebrew/Brewfile:

cd homebrew
make install-packages
make dump

dev-update also verifies the Homebrew Codex CLI signature and clears its quarantine attribute after upgrading. See Codex configuration for details.

Preferences

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.

Customization patterns

  • Put machine-specific or sensitive values in .local files such as git/gitconfig.local.symlink
  • Keep new managed files in their domain directory with a .symlink suffix
  • Add new links in install.conf.yaml using repo-relative paths
  • Use create: true when 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.

Private settings in 1Password

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.

Adding a new dotfile

  1. Create the source file in the appropriate directory with a .symlink suffix.
  2. Add a mapping in install.conf.yaml.
  3. Run ./install.
  4. Verify the symlink and the target application behavior.

Notes

  • Do not edit dotbot/; it is a vendored submodule.
  • Avoid committing secrets, private keys, tokens, or machine-specific credentials.

About

haxoza's dotfiles

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Contributors

Languages