Skip to content

Instantly share code, notes, and snippets.

View bart314's full-sized avatar
💭
I will be slow to respond.

Bart Barnard bart314

💭
I will be slow to respond.
View GitHub Profile
@bart314
bart314 / watch.rb
Created January 13, 2022 09:19
Watch for changes and reload chrome page
#!/usr/bin/env ruby
# watch.rb by Brett Terpstra, 2011 <http://brettterpstra.com>
# with credit to Carlo Zottmann <https://github.com/carlo/haml-sass-file-watcher>
trap("SIGINT") { exit }
if ARGV.length < 2
puts "Usage: #{$0} watch_folder keyword"
puts "Example: #{$0} . mywebproject"
exit