ic
ic copied to clipboard
History doesn't persist across sessions
history navigation works well within a single prompt, but it's not persisted. If the console exits and is restarted, there is no history.
History should be working on ic but not yet to crystal-i. This is because the code to handle history have not been imported to the compiler. (minimal impact):
def history_file
if file = ENV["IC_HISTORY_FILE"]?
return nil if file.empty?
file
else
::Path.home / ".ic_history"
end
end
However if you creates your own repl using REPLy you can add these lines to handle the history.