-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpryrc
46 lines (40 loc) · 909 Bytes
/
pryrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8 -*-
#
# ~/.pryrc
# vim:ft=ruby
Pry.config.editor = "#{ENV['EDITOR']}"
# so that i can debug our tests
# https://github.com/ci-reporter/ci_reporter/issues/154
ENV['CI_CAPTURE'] = 'off'
begin
print 'awesome_print'
require 'awesome_print'
AwesomePrint.pry!
puts ' loaded'
rescue LoadError
puts ' not found'
end
begin
print 'hirb'
require 'hirb'
Hirb.enable
puts ' loaded'
rescue LoadError
puts ' not found'
end
%w(pry-debugger pry-byebug pry-stack_explorer pry-rescue).each do |lib|
begin
print lib
require lib
puts ' loaded'
rescue LoadError
puts ' not found'
end
end
if defined?(PryDebugger) || defined?(PryByebug)
Pry.commands.alias_command('cont', 'continue')
Pry.commands.alias_command('f', 'finish')
Pry.commands.alias_command('s', 'step')
Pry.commands.alias_command('n', 'next')
Pry.commands.alias_command('l', 'whereami')
end