Edit file File name : listen Content :#!/usr/bin/ruby require 'listen' require 'listen/cli' unless defined?(JRUBY_VERSION) if Signal.list.keys.include?('INT') Signal.trap('INT') { Thread.new { Listen.stop } } end end Listen::CLI.start Save