Created
June 17, 2012 08:01
-
-
Save Mon-Ouie/2943862 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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