hoarder

Crates.iohoarder
lib.rshoarder
version0.1.0
sourcesrc
created_at2022-10-28 15:16:53.863071
updated_at2022-10-28 15:16:53.863071
descriptionA simple dotfiles manager that make things clearly
homepage
repository
max_upload_size
id700484
size11,908
Plimeor (plimeor)

documentation

README

Hoarder

A simple dotfiles manager that make things clearly.

Installation

cargo install hoarder

Usage

example: plimeor/dotfiles

Setup

  1. Run hoarder init to create a hoarder.json in current dir
  2. Set env HOARDER to this dir
  3. Update hoarder.json to specify the file to be collected, example:
{
  "nvim": {
    ".config/nvim": "~/.config/nvim"
  },
  "zsh": {
    ".zshrc": "~/.zshrc",
    ".zsh_profile": "~/.zsh_profile"
  }
}

Collect

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 

Restore

Use hoarder restore to copy back files to original location.

Commit count: 0

cargo fmt