Reinstalling macOS: dotfiles
Previously, I’ve used GNU stow for managing my dotfiles. This time, I’m going to use yadm (Yet Another Dotfiles Manager) instead.
In the distant past, I’ve just symlinked my dotfiles into a git repository using a Makefile. Then I discovered stow, which does more or less the same, but without the Makefile. I’m not entirely happy with that, though, so I went looking for alternatives, and found yadm.
It’s basically a more feature-filled wrapper around a bare git repository.
Setting up
Setting it up is a one-time thing; once it’s done, you’ll clone it onto any other machine you’re using.
To set it up:
yadm init
yadm remote add origin REMOTEBefore pushing, you need some files, or it’ll fail with error: src refspec main does not match any.
Since I’d just configured my user details in git, I added that:
yadm add .config/git/config
yadm commit -m "Configure git user details"
yadm push -u origin mainCloning
Once you’ve got the remote repository set up, you can use yadm clone REMOTE to install it on a new machine.
NoteMy dotfiles are at https://codeberg.org/rlipscombe/dotfiles