A fresh take at my dotfiles with chezmoi as the lightweight dotfile management system.
Dotfiles are the collection of managed customizations across systems. Read more:
chezmoi
does the heavy lifting, but the quick guide looks like this.
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply $GITHUB_USERNAME
chezmoi diff
to see what's changedchezmoi update
will resetlocal
with theupstream
versionchezmoi apply
when you want to resetupstream
withlocal
version (will prompt when overwriting)chezmoi re-add
when you edit outside of chezmoi fileschezmoi merge
to resolve differences
Unless you are me, you probably don't want to follow this setup verbatim. Make a fork of this project and customize it to be your own. If you are me, here's how to use this, dear future self.
- Add hardlinks to key Obsidian config files so I can sync them across systems
- Correct iTerm and add shortcuts
- Learn how to run
onchange
scripts properly- This documentation shows that I can run on change to a checksum and definitely want that pattern, but I don't get the syntax shown.