Crates.io | hoarder |
lib.rs | hoarder |
version | 0.1.0 |
source | src |
created_at | 2022-10-28 15:16:53.863071 |
updated_at | 2022-10-28 15:16:53.863071 |
description | A simple dotfiles manager that make things clearly |
homepage | |
repository | |
max_upload_size | |
id | 700484 |
size | 11,908 |
A simple dotfiles manager that make things clearly.
cargo install hoarder
example: plimeor/dotfiles
hoarder init
to create a hoarder.json
in current dirHOARDER
to this dirhoarder.json
to 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.