Crates.io | dotconfig |
lib.rs | dotconfig |
version | 0.2.0 |
source | src |
created_at | 2022-01-05 08:40:32.455341 |
updated_at | 2022-09-12 07:07:16.15487 |
description | A tool for symlinking configuration files from a central repository to their respective locations on the system in a repeatable, configurable way. |
homepage | |
repository | https://github.com/mfdorst/dotconfig |
max_upload_size | |
id | 508273 |
size | 40,956 |
A tool for symlinking configuration files from a central repository to their respective locations on the system in a repeatable, configurable way.
cargo install dotconfig
yay
or another AUR helper will also work)paru -S dotconfig
By default dotconfig
will look for the directory ~/.cfg
, which is assumed to contain all of your
dotfiles as well as symlinks.yml
, which is a listing of all of the desired symlinks you would like
dotconfig
to make for you.
The format of symlinks.yml
should be as follows:
links:
- link:
path: ~/.zshrc
origin: zshrc
- link:
path: ~/.config/alacritty/alacritty.yml
origin: alacritty-config.yml
# ...
In this example, dotconfig
would create the following two symlinks:
~/.zshrc -> ~/.cfg/zshrc
~/.config/alacritty/alacritty.yml -> ~/.cfg/alacritty-config.yml
dotconfig [OPTIONS]
-c, --config <CONFIG> Specify the YAML file that lists your desired symlinks [default: symlinks.yml]
-d, --dir <DIR> Specify the directory that holds your config files [default: $HOME/.cfg]
-h, --help Print help information
-V, --version Print version information
In the following example, dotconfig
will read ~/my-dotfiles/links.yml
, and all links will be
made to the ~/my-dotfiles
directory.
dotconfig -d ~/my-dotfiles -c links.yml