Easy, secure dotfiles management with chezmoi ↦
Here’s how Tom Payne describes his project:
chezmoi is a popular dotfile manager (currently over 4.5K stars on GitHub and increasing quickly). chezmoi helps you get your prefered environment synchronized across multiple machines (e.g. your home desktop, your work laptop, and a temporary development container in the cloud) while easily coping with differences from machine to machine and keeping all your secrets safe either with your password manager or encryption. Using chezmoi feels very much like using git (and indeed it builds on git). chezmoi is easy to install, quick to start with, runs everywhere, and scales from managing a handful of files on one machine to complex multi-machine set-ups with hundreds of dotfiles and plugins.
Getting a new machine set up looks like:
$ sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply <github-username>
My dotfiles “manager” is just a combination of git clone
and setup.sh
, but if I used many machines I’d probably reach for something more robust like this. If you’re already using a manager for yours, here’s a comparison guide of how chezmoi stacks up to other popular options.
Discussion
Sign in or Join to comment or subscribe
Tom Payne
2021-09-15T18:39:42Z ago
If you’re using
git clone
and a customsetup.sh
script, here’s why you should consider chezmoi.jonasbn
Copenhagen, Denmark
Computer programmer, runner, LEGO builder, powernapper and father of 2 boys all squeezed in the few hours available.
2022-01-20T15:21:16Z ago
The link to the comparison guide seems to be b0rken :-/
I believe it has move to:
Tom Payne
2022-01-20T23:31:21Z ago
Thank you @jonasbn! This was my fault: I published links to files in https://github.com/twpayne/chezmoi which broke with no option to include redirects when I updated the chezmoi website in https://github.com/twpayne/chezmoi/pull/1826.
jonasbn
Copenhagen, Denmark
Computer programmer, runner, LEGO builder, powernapper and father of 2 boys all squeezed in the few hours available.
2022-01-23T11:54:29Z ago
No problem,I found it - leaving updated links here for other curious souls.
I have installed
chez moi
on 3 machines and slowly I am adding more and more dotfiles. I actually believe this to be a healthy exercise for your dotfiles, since they may not make sense on another host and they tend to grow quite organic. So I am clearing up and improving things as I go along - might do a blog post on the process.Take care, stay safe and thanks for a marvelous tool
jonasbn