Skip to content

Instantly share code, notes, and snippets.

@Mon-Ouie
Created November 27, 2011 08:37
Show Gist options
  • Save Mon-Ouie/1397236 to your computer and use it in GitHub Desktop.
Save Mon-Ouie/1397236 to your computer and use it in GitHub Desktop.
begin
require 'coolline'
Pry.config.input = Coolline.new do |cool|
cool.word_boundaries = [" ", "\t", ",", ";", ".", '"', "'", "`", "<", ">",
"=", ";", "|", "{", "}", "(", ")", "-"]
cool.history_file = Coolline::NullFile
cool.transform_proc = proc do
CodeRay.scan(cool.line, :ruby).term
end
end
rescue LoadError
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment