# File lib/guard.rb, line 96
    def setup(options = {})
      @lock       = Mutex.new
      @options    = options
      @guards     = []
      self.reset_groups
      @listener   = Listener.select_and_init(options)

      if Signal.list.keys.include?('USR1')
        Signal.trap('USR1') { ::Guard.pause unless @listener.paused? }
      end

      if Signal.list.keys.include?('USR2')
        Signal.trap('USR2') { ::Guard.pause if @listener.paused? }
      end

      UI.clear if @options[:clear]
      debug_command_execution if @options[:verbose]

      self
    end