Skip to content

Instantly share code, notes, and snippets.

@naohaq
Created May 17, 2020 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naohaq/7e560af3304d7cc89fb8fb9f6a783599 to your computer and use it in GitHub Desktop.
Save naohaq/7e560af3304d7cc89fb8fb9f6a783599 to your computer and use it in GitHub Desktop.
IRB Color configuration
# -*- mode: ruby; coding: utf-8-unix -*-
IRB::Color.instance_eval do
exprs = const_get('TOKEN_SEQ_EXPRS')
t_all = const_get('ALL')
exprs[:on_const] = [[self::YELLOW, self::BOLD, self::UNDERLINE], t_all]
exprs[:on_int] = [[self::YELLOW, self::BOLD], t_all]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment