A simple dotfiles manager that make things clearly.
cargo install hoarderexample: plimeor/dotfiles
- Run
hoarder initto create ahoarder.jsonin current dir - Set env
HOARDERto this dir - Update
hoarder.jsonto specify the file to be collected, example:
{
"nvim": {
".config/nvim": "~/.config/nvim"
},
"zsh": {
".zshrc": "~/.zshrc",
".zsh_profile": "~/.zsh_profile"
}
}Use hoarder collect to collect the specified file and leave a symlink in place, example:
- dotfiles # you should use env `HOARDER` to specify this dir
- nvim
- .config
- nvim
- zsh
- .zshrc
- .zsh_profile
- hoarder.json # configuration Use hoarder restore to copy back files to original location.