-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pryrc
23 lines (20 loc) · 753 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
Pry.config.color = true
Pry.config.theme = "solarized"
Pry.editor = 'vim'
# === Listing config ===
# Better colors - by default the headings for methods are too
# similar to method name colors leading to a "soup"
# These colors are optimized for use with Solarized scheme
# for your terminal
Pry.config.ls.separator = "\n" # new lines between methods
Pry.config.ls.heading_color = :magenta
Pry.config.ls.public_method_color = :green
Pry.config.ls.protected_method_color = :yellow
Pry.config.ls.private_method_color = :bright_black
Pry.config.exception_handler = proc do |output, exception, _|
output.puts "#{exception.class}: #{exception.message}"
exception.backtrace.each do |bt|
puts "\tfrom: #{bt}"
break if bt =~ /^\(pry\)/
end
end