Crates.io | homux |
lib.rs | homux |
version | 0.2.4 |
source | src |
created_at | 2024-04-21 17:56:17.51119 |
updated_at | 2024-09-10 08:42:44.033943 |
description | Synchronize your home directory across host machines. |
homepage | |
repository | https://github.com/ArielHorwitz/matchpick |
max_upload_size | |
id | 1215567 |
size | 30,696 |
Homux is a home directory multiplexer.
A source directory is applied to the home directory of multiple hosts. In order to multiplex configurations across different hosts, the matchpick library is used to match different lines depending on which host is being applied to.
Let's look at an example configuration file, ~/.gitconfig
. Suppose our home computer is named "homestation", while our computer at work is named "workstation". We wish to configure our email address differently on each host, while keeping our name the same:
# https://git-scm.com/docs/git-config
[user]
name = Tux Linux
~>>>
email = "Default@example.com"
~>>> homestation
email = "PersonalAccount@example.com"
~>>> workstation
email = "WorkAccount@example.com"
~<<<
This allows a single directory managed by a single repository to be used as the configuration source even across different hosts.