dotfiles & config management#
My collection of my dotfiles used across multiple systems and managed by chezmoi.
Quick Start#
sh -c "$(curl -fsSL get.chezmoi.io)" -- init --apply mauvehed
Personal secrets are stored in 1Password and you'll need the 1Password CLI installed.
After installation or major changes you may need to relogin to 1Password with:
eval $(op signin)
Tools Used#
| Name | Description | Required |
|---|---|---|
| Terminal | Warp | No |
| Package manager | homebrew | Yes |
| Shell | oh-my-zsh | Yes |
| Zsh theme | powerlevel10k | Yes |
| Dotfiles manager | chezmoi | Yes |
| Password Manager | 1password | Yes |
Command Reference#
To add new files to chezmoi control:
chezmoi add <file>
To edit a file under chezmoi control:
chezmoi edit <file>
To preview changes before applying:
chezmoi diff
To apply changes from .local/share/chezmoi/ to ~/ use:
chezmoi apply
To both git pull and chezmoi apply use update
chezmoi update
To force a refresh the downloaded archives (from .chezmoiexternal.toml), use the --refresh-externals (-R) flag to chezmoi apply:
chezmoi -R apply
To test chezmoi template files (.tmpl):
chezmoi execute-template < dot_gitconfig.tmpl
Chezmoi and Git#
To execute git commands within the chezmoi source director you can append them to the chezmoi command
Git pull:
chezmoi git pull
Git push:
chezmoi git push
Git status:
chezmoi git status