#home-dir #configuration #config-file

bin+lib homux

Synchronize your home directory across host machines

7 releases

0.2.4 Sep 10, 2024
0.2.3 Aug 22, 2024
0.2.1 Jun 2, 2024
0.2.0 May 3, 2024
0.1.1 Apr 21, 2024

#16 in #home-directory

Download history 30/week @ 2024-07-27 247/week @ 2024-08-17 26/week @ 2024-08-24 158/week @ 2024-09-07 52/week @ 2024-09-14 16/week @ 2024-09-21 10/week @ 2024-09-28 1/week @ 2024-10-05

86 downloads per month

Unlicense

28KB
595 lines

Homux is a home directory multiplexer.

How it works

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.

Dependencies

~2–12MB
~86K SLoC