blainea-ca's dotfiles, managed with chezmoi.
Personal secrets live in 1Password; the 1Password CLI is required to render templates that reference vaulted items.
Prerequisites: Homebrew.
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install chezmoi:
brew install chezmoi
Initialize - this clones the repo, the pre-source-state hook installs 1Password and 1Password CLI, then exits with sign-in instructions:
chezmoi init --apply blainea-ca
Sign in to 1Password:
- Open 1Password and sign in.
- In 1Password → Settings → Developer, enable:
- Integrate with 1Password CLI
- Use the SSH agent
- Then run
eval $(op signin)
Install the 1Password AWS CLI plugin:
op plugin init aws
Apply the rest of the templates (op can now resolve secrets):
chezmoi apply
Fetch SSH public key files:
op read "op://Private/Example SSH Key/public key" > ~/.ssh/id_example.pub
Install software managed with brew:
brewfile-install
Point iTerm2 at the chezmoi-managed prefs (one-time, after iTerm2 is installed by brew):
- Open iTerm2.
- Settings → General → Preferences:
- Load preferences from a custom folder or URL
- Set folder to:
~/.config/iterm2/ - Save changes to folder automatically
- Quit and reopen iTerm2 - font, colors, profiles, and keybindings come
from
~/.config/iterm2/com.googlecode.iterm2.plist.
- 1Password + 1Password CLI - installed by
.install-1password.shvia theread-source-state.prehook configured in.chezmoi.toml.tmpl. - Oh My Zsh - installed by
.chezmoiscripts/run_once_before_omz.shif~/.oh-my-zshdoesn't exist. Runs before any files are applied so the framework exists before.zshrclands and before externals clone plugins. - powerlevel10k, zsh-syntax-highlighting, zsh-autosuggestions - cloned
into
~/.oh-my-zsh/custom/by.chezmoiexternal.toml(refreshed weekly). - Templated files (
~/.ssh/config,~/.gam/*,~/.gitconfig, etc.) - rendered from 1Password onchezmoi apply. - iTerm2 prefs -
~/.config/iterm2/com.googlecode.iterm2.plistis chezmoi-managed; iTerm2 reads from that folder once pointed at it (see the new-macOS setup step above).
The SSH config lives in a 1Password Document named chezmoi-ssh-config, referenced from dot_ssh/config.tmpl.
Push updates from local file to 1Password
op document edit "chezmoi-ssh-config" ~/.ssh/config