-
Notifications
You must be signed in to change notification settings - Fork 1
/
pryrc
29 lines (25 loc) · 641 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
# vi: ft=ruby
# frozen_string_literal: true
begin
require 'amazing_print'
AmazingPrint.pry!
rescue LoadError => _e
puts 'no amazing_print :('
begin
require 'awesome_print'
AwesomePrint.pry!
rescue LoadError => _e
puts 'no awesome_print :('
end
end
if defined?(PryByebug)
Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
Pry.commands.alias_command 'f', 'finish'
end
# Hit Enter to repeat last command
Pry::Commands.command(/^$/, 'repeat last command') do
pry_instance.run_command Pry.history.to_a.last
end
Pry.config.editor = 'vim'