Disable IRB Colors In Ruby 2.7+

Posted By Weston Ganger

If you are like me, the recent addition of colorization to the Ruby 2.7+ IRB sessions is completely bothersome because its totally different colors than I use within VIM. I would rather have my Ruby console uncolored.

If you want to disable the IRB colorize feature simply add the following to your ~.irbrc


# ~/.irbrc

IRB.conf[:USE_COLORIZE] = false

If you do not add this to your ~/.irbrc you can instead simply pass --nocolorize option on the command line


irb --nocolorize


Related External Links:

Article Topic:Software Development - Rails

Date:May 29, 2020