Improved method listing colors in pry
This commit is contained in:
parent
59d6d2433f
commit
dca3ac817d
12
irb/pryrc
12
irb/pryrc
@ -2,8 +2,20 @@
|
||||
Pry.editor = 'vi'
|
||||
|
||||
# === CUSTOM PROMPT ===
|
||||
# This prompt shows the ruby version (useful for RVM)
|
||||
Pry.prompt = [proc { |obj, nest_level, _| "#{RUBY_VERSION} (#{obj}):#{nest_level} > " }, proc { |obj, nest_level, _| "#{RUBY_VERSION} (#{obj}):#{nest_level} * " }]
|
||||
|
||||
# === 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
|
||||
|
||||
# == PLUGINS ===
|
||||
# awesome_print gem: great syntax colorized printing
|
||||
# look at ~/.aprc for more settings for awesome_print
|
||||
|
Loading…
Reference in New Issue
Block a user