Skip to content

Instantly share code, notes, and snippets.

@atton
atton / .pryrc
Last active January 4, 2016 19:53
crash logs pry-rails saved multibyte characters into history with rb-readline
Pry.history.instance_eval do
@saver = ->(line) { save_to_file (line.force_encoding(STDIN.external_encoding))}
end