Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the default syntax coloring in ruby 3.0's IRB

I'm very happy to be using the most recent ruby 3.0; as well as having access to the updated command-line interpreter, which does syntax highlighting and coloring.

However, the colors are a bit hard to see for me. How can I change them? The command line options for IRB allow me to turn off colorization with --nocolorize, but I can't figure out where the configuration files are that would allow me to change the defaults (e.g., to make the blue color lighter).)

like image 872
Simon DeDeo Avatar asked Dec 29 '25 18:12

Simon DeDeo


1 Answers

I fixed this by changing iTerm2 theme.

Switching to 'Tango Dark' made it readable.

Tango Dark

Here how the new Ruby 3.1 autocomplete feature looks like right now:

Irb autocomplete

like image 94
Michael Koper Avatar answered Dec 31 '25 12:12

Michael Koper