Personal dotfiles managed with chezmoi
# Install chezmoi
sh -c "$(curl -fsLS get.chezmoi.io)"
# Initialize and apply dotfiles
chezmoi init --apply https://github.com/trly/dotfiles.git- macOS or Linux with Zsh
- chezmoi >= v2.42
- 1Password CLI
- Git 2.30+
Optional but recommended:
brew install diff-so-fancy neovim mise fzf zsh-autosuggestions zsh-syntax-highlighting-
Install chezmoi (if not already installed):
sh -c "$(curl -fsLS get.chezmoi.io)" -
Initialize dotfiles:
chezmoi init --apply https://github.com/trly/dotfiles.git
-
You'll be prompted for:
- Email address (used in Git configuration)
- Profile (
workorhome)
-
Authenticate 1Password CLI:
eval "$(op signin)"
-
Apply to pull secrets:
chezmoi apply
-
Restart your shell or open a new terminal
export CHEZMOI_EMAIL="your@email.com"
export CHEZMOI_PROFILE="home"
chezmoi init --apply https://github.com/trly/dotfiles.gitFiles prefixed with dot_ map to dotfiles in $HOME. Templates use {{ .variable }} syntax.
All secrets are stored in 1Password and referenced via templates:
export AMP_API_KEY={{ onepasswordRead "op://Private/Amp API Key/credential" }}Requirements:
- 1Password CLI installed and signed in
- Secrets stored in 1Password with correct vault/item paths
Adding new secrets:
- Store in 1Password
- Reference in templates using
onepasswordRead - Apply changes with
chezmoi apply
Auto-commit enabled: Changes are automatically committed and pushed when you run chezmoi apply.
MIT License - feel free to use and modify as needed.