Skip to content

Commit

Permalink
Add more usage examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreer committed Jan 5, 2016
1 parent 4d0113c commit f454ea9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit f454ea9

Please sign in to comment.