Permalink
Browse files

Improved method listing colors in pry

  • Loading branch information...
1 parent 59d6d24 commit dca3ac817d826747bd355b94b0a3ff40accfc9b4 @skwp skwp committed Dec 13, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 irb/pryrc
View
@@ -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

0 comments on commit dca3ac8

Please sign in to comment.