From ff46d4d5732b031e1c161240d0b0730763251e68 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 3 Apr 2016 22:33:42 -0400 Subject: [PATCH] pryrc: add run(file) and fix $TERM check --- pryrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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