awesome-print / awesome_print

Pretty print your Ruby objects with style -- in full color and with proper indentation
http://github.com/michaeldv/awesome_print
MIT License
4.07k stars 454 forks source link

Setting defaults has no effect #320

Open AndrewRayCode opened 7 years ago

AndrewRayCode commented 7 years ago
 $ cat ~/.aprc
AwesomePrint.defaults = {
    color: {
        bigdecimal: :white,
        integer:    :white,
        float:      :white,
        rational:   :white
    }
}

But in a new pry:

screen shot 2017-09-14 at 11 08 55 am

Top of ~/.pryrc:

require 'awesome_print'
AwesomePrint.pry!
TLINDEN commented 6 years ago

Same with irb. I also tried setting the defaults in my .irbrc, when I print the defaults from within irb, I see the hash I actually configured, however, colors are ignored anyway.