My dotfiles, managed by chezmoi
Install chezmoi
with something like
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply mamercad
# Or with Homebrew
brew install chezmoi
Initialize chezmoi
with chezmoi init
If .chezmoi.toml.tmpl
changes, run chezmoi init
again
Manage a dotfile with chezmoi add .somedotfile
Manage a dotfile as a template with chezmoi add --template .somedotfile
Edit a managed dotfile with chezmoi edit .somedotfile
See what would change with chezmoi diff
Apply the change with chezmoi apply -v
Apply the change (dry-run) with chezmoi apply -n -v
Commit the change with chezmoi cd && git add . && git commit -m "Something" && git push
For the most part, I use Homebrew
Install brew
with something like
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Or fetch the pkg from https://github.com/Homebrew/brew/releases/latest
Dump the current package state brew bundle dump -f
into Brewfile
To validate the current package state brew bundle check
To deploy the current packages brew bundle install