Skip to content

Instantly share code, notes, and snippets.

@adammeghji
Created August 12, 2013 17:20
Show Gist options
  • Save adammeghji/6213016 to your computer and use it in GitHub Desktop.
Save adammeghji/6213016 to your computer and use it in GitHub Desktop.
Quick & dirty script to rsync an fswatch'ed directory on OSX and beep when updates are pushed
#!/bin/sh
CMD="rsync -avz --progress -L --exclude .git* --delete $HOME/Code/tools karate:Code/"
NOTIFY="afplay /System/Library/Sounds/Morse.aiff 1> /dev/null 2> /dev/null"
$HOME/Code/vendor/fswatch/fswatch $HOME/Code/. "$CMD; $NOTIFY"%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment