6 releases (3 breaking)

0.4.1 Feb 15, 2024
0.4.0 Feb 3, 2024
0.3.1 Feb 2, 2024
0.2.0 Jan 28, 2024
0.1.0 Jan 28, 2024

#70 in Configuration

Download history 3/week @ 2024-07-28 32/week @ 2024-09-29

58 downloads per month

MIT/Apache

23KB
596 lines

SDMW - A Simple Dotfiles Manager Written in Rust

workflow_build workflow_test Crates.io Version

v0.4.0

Changed behavior of a subcommand add

Requirements

  • Unix-like operating system
  • git

Installation

Run the following Cargo command:

cargo install sdmw

Or download prebuilt binary from the GitHub release page

Usage

  1. Create a new repository:
sdmw new /path/to/repository && cd /path/to/repository
  1. Edit settings.json:
{
    "path": [
+       "~/.config/alacritty",
+       "~/.zshrc"
    ]
}

And run:

sdmw add

Alternatively:

sdmw add ~/.config/alacritty ~/.zshrc
  1. Install: Create symbolic links.
sdmw install

To restore files:

cd /path/to/repository && sdmw restore alacritty/

Options

  • -q, --quiet - Do not print log messages.
  • -p, --pretend - Prit what it would do but not actually change anything.
  • -h, --help - Print help.
  • -V, --version - Print version.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~4–16MB
~162K SLoC