diff --git a/pryrc b/pryrc index 1b88006c..c73798c1 100644 --- a/pryrc +++ b/pryrc @@ -1,6 +1,6 @@ # Pry config -if ENV['TERM'] == 'emacs' +if ENV['TERM'] == 'dumb' Pry.config.color = false Pry.config.pager = false Pry.config.auto_indent = false @@ -40,3 +40,7 @@ def time(repetitions = 100, &block) require 'benchmark' Benchmark.bm { |b| b.report { repetitions.times(&block) } } end + +def run(file) + require "#{Dir.pwd}/#{file}" +end