From dca3ac817d826747bd355b94b0a3ff40accfc9b4 Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 13 Dec 2011 00:13:25 -0800 Subject: [PATCH] Improved method listing colors in pry --- irb/pryrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/irb/pryrc b/irb/pryrc index daaaeaf1..d1d77cb2 100644 --- a/irb/pryrc +++ b/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