Skip to content

Commit

Permalink
Improved method listing colors in pry
Browse files Browse the repository at this point in the history
  • Loading branch information
skwp committed Dec 13, 2011
1 parent 59d6d24 commit dca3ac8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions irb/pryrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dca3ac8

Please sign in to comment.