My personal dotfile backup, powered by chezmoi
-
Install
asdf
-
Install asdf
chezmoi
plugin :asdf plugin add chezmoi
-
Install
chezmoi
viaasdf
:asdf install chezmoi 2.40.0
-
Add
chezmoi
configuration to ~/.config/chezmoi/chezmoi.yaml:touch ~/.config/chezmoi/chezmoi.yaml
-
Paste the following into
chezmoi.yaml
:sourceDir: ~/.config/chezmoi/chezmoi.yaml edit: command: nvim
$ chezmoi add [path_to_file]
$ chezmoi edit [path_to_file]
If you edit a configuration file without chezmoi edit
, you can re-add it:
$ chezmoi re-add [path_to_file]