Created
August 23, 2011 19:49
-
-
Save code-later/1166298 to your computer and use it in GitHub Desktop.
watch with fsevent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
require 'rubygems' | |
require 'rb-fsevent' | |
command = ARGV[0] | |
fsevent = FSEvent.new | |
fsevent.watch Dir.pwd do |directories| | |
system command | |
end | |
fsevent.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment