How To 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

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected