Crates.io | slmap |
lib.rs | slmap |
version | 0.2.1 |
source | src |
created_at | 2022-09-09 01:38:43.207752 |
updated_at | 2023-12-24 18:45:28.046871 |
description | A simple program for managing symlinks via config file. |
homepage | |
repository | https://github.com/thedustinmiller/slmap |
max_upload_size | |
id | 661415 |
size | 28,203 |
Simple utility to manage a list of symlinks so you can centralize your config files in a repo and symlink to them.
slmap
commands are create, update, clean, and status
create will create all the symlinks if there are no existing conflicting files
update will update -only- symlinks to point at new target, or create new symlinks if they don't exist
status will go through the map and check the statuses of symlinks. The possible statuses are:
Note: the links are relative to where the slmap command is run. Paths are interpretted with shell variables and ~
Future goals:
file format:
[filename]
target = 'path/to/file'
link_name = 'path/to/file'
[directory]
target = 'config/dir'
link_name = 'test/dir'
directory = true
[zshrc]
target = 'config/zshrc'
link_name = 'test/.zshrc'
[vimrc]
target = 'config/vimrc'
link_name = 'test/.vimrc'
[motd]
target = 'config/motd'
link_name = '/etc/motd'