Skip to content

Instantly share code, notes, and snippets.

@Mon-Ouie
Created June 17, 2012 08:01
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 Mon-Ouie/2943862 to your computer and use it in GitHub Desktop.
Save Mon-Ouie/2943862 to your computer and use it in GitHub Desktop.
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
cool.handlers << Coolline::Handler.new("\C-u") do
cool.line.clear
cool.pos = 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment