From f454ea9d96c2877dd5905c51b6833ae9faeb89d2 Mon Sep 17 00:00:00 2001 From: Geoff Greer Date: Mon, 4 Jan 2016 18:58:35 -0800 Subject: [PATCH] Add more usage examples. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 4e9d933..ae17624 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,21 @@ Alert if any files in a directory are changed. notifywait /path/; echo "\007" + +Rebuild LESS when anything in `styles` changes. Assuming you have a script similar to this `rebuild_less.sh`: + + #!/bin/bash + for less_file in styles/*.less + do + css_file=`echo $less_file | sed -E "s/.less//"` + lessc $less_file $css_file.css + done + +...just run: + + notifyloop styles ./rebuild_less.sh + + Automatically rsync files to a remote server if any of them are changed. autorsync . 192.168.1.127:/var/www