pryrc: add run(file) and fix $TERM check
This commit is contained in:
parent
64449733e0
commit
ff46d4d573
6
pryrc
6
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
|
||||
|
|
Loading…
Reference in a new issue