From 4c27331ac0fb3fdbd06640c05d2002b628aa35ac Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Wed, 12 Jan 2022 06:02:49 -0500 Subject: [PATCH] Update readme and prehook. --- .githooks/pre-commit | 2 +- README.md | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 8969cdb..7448ca0 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -3,7 +3,7 @@ set -e filesToFormat=$( git --no-pager diff --name-status --no-color --cached | \ - awk '$1 != "D" && $2 ~ /\.rs/ {print $2}' + awk '$1 != "D" && $2 ~ /\.rs/ {print $NF}' ) for path in $filesToFormat diff --git a/README.md b/README.md index 5f39666..cbb5843 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,11 @@ ## 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. +Homesync provides a way of automatically syncing files across your desktop to a +git repository. By registering files with homesync, upstream and +downstream syncing can be done as requested, without any manual need to twiddle +files and copy them into a local git repository. Separately, a daemon service +exists that watches for changes as they happen. ## Installation