2021-12-28 18:30:49 +00:00
|
|
|
# homesync
|
2021-12-29 13:15:19 +00:00
|
|
|
|
|
|
|
**Caution! This is unstable code!**
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
Homesync provides a way of automatically syncing config files across various
|
|
|
|
applications you may use. It works by establishing a file watcher on all the
|
|
|
|
configs specified in the primary `homesync` config. As files are changed, they
|
|
|
|
are copied to a local git repository to eventually be pushed by the user.
|
|
|
|
Likewise, at any point, the user can sync against the remote repository,
|
|
|
|
overwriting local configurations for one or more packages.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
Homesync uses a YAML file, to be found in anyone of the following locations.
|
2021-12-29 16:49:24 +00:00
|
|
|
Locations are searched in the following priority:
|
2021-12-29 13:15:19 +00:00
|
|
|
|
2021-12-29 16:08:58 +00:00
|
|
|
- `$HOME/.homesync.yml`
|
2021-12-29 16:49:24 +00:00
|
|
|
- `$HOME/.config/homesync/homesync.yml`
|
|
|
|
- `$XDG_CONFIG_HOME/homesync.yml`
|
|
|
|
- `$XDG_CONFIG_HOME/homesync/homesync.yml`
|
2021-12-29 13:15:19 +00:00
|
|
|
|
|
|
|
That said, it is recommended to modify this config solely from the exposed
|
2021-12-29 16:49:24 +00:00
|
|
|
homesync CLI. Homesync will take responsibility ensuring the generated
|
|
|
|
configuration is according to package manager, platform, etc.
|
2021-12-29 13:15:19 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
## Contribution
|
|
|
|
|
|
|
|
Install git hooks as follows:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git config --local core.hooksPath .githooks/
|
|
|
|
```
|