reedline
reedline copied to clipboard
Disable History
It's unclear how to disable History if it's even possible.
Furthermore the docs for Reedline::create state: "Create a new Reedline engine with a local History that is not synchronized to a file.", however looking at the implementation it is set to aFileBackedHistory. This seems like another issue.
In nushell, I think we set history max_size to 0.
This indeed works:
.with_history(Box::new(FileBackedHistory::new(0).unwrap()))
Though it would really be nice to do something like .with_history(None) or .disable_history().