How to adjust pry colors How to adjust pry colors ruby ruby

How to adjust pry colors


Pry uses CodeRay for coloring, so you can put the following in your .pryrc file:

CodeRay.scan("example", :ruby).term # just to load necessary filesTERM_TOKEN_COLORS = {    :symbol => '1;31' # will make symbols bolded and light red on my terminal}module CodeRay    module Encoders        class Term < Encoder            # override old colors            TERM_TOKEN_COLORS.each_pair do |key, value|                TOKEN_COLORS[key] = value            end        end    endend

You can see here all values that can be customized (not sure which one exactly is the one you mentioned, but shouldn't be hard to track down):https://github.com/rubychan/coderay/blob/master/lib/coderay/encoders/terminal.rb