Use @history.raw instead of @history.to_s to avoid colour in the saved history file.
This commit is contained in:
parent
9dc32f09c3
commit
a627a56f6a
|
@ -86,7 +86,7 @@ class Pry
|
|||
|
||||
output.puts "Saving history in #{file_name}..."
|
||||
|
||||
File.open(file_name, 'w') { |f| f.write(@history.to_s) }
|
||||
File.open(file_name, 'w') { |f| f.write(@history.raw) }
|
||||
|
||||
output.puts "History saved."
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue