On September 21, 2021 I cleaned up and migrated my dotfiles to use chezmoi
. It better handles multi-machine settings, secret files, supports encryption and custom templates.
chezmoi cd
: spawn a new shell and change to source directorychezmoi edit <file>
: edit a file with the configured editor from the source dirchezmoi edit-config
: edit the~/.config/chezmoi/chezmoi.toml
(this file is not managed/uploaded to GitHub)chezmoi add <file>
: add a new file/folderchezmoi apply
: apply the source dir state to the target dir (default is$HOME
)chezmoi apply --refresh-externals
: apply the source state by updating any external file or folder configured in.chezmoiexternal.toml
- One-liner for a single binary install:
sh -c "$(curl -fsLS git.io/chezmoi)"
orsh -c "$(wget -qO - git.io/chezmoi)"
- Package manager install:
- macOS:
brew install chezmoi
- Void Linux:
xbps-install -S chezmoi
- Ubuntu or other Linux distro, via Linuxbrew:
brew install chezmoi
- macOS:
chezmoi init edoardob90
: to initialize the local source state from the default repochezmoi init --apply edoardob90
: init & apply the source state
chezmoi update
I still have to include in the new repo:
-
Automatic installation of essential pkgs on both Linux and macOS (Brew/Linuxbrew or package manager)→ done by saving aBrewfile
- SSH public keys → almost done with Bitwarden cli and a shell script, but it needs proper testing!