remove history file after clearing it (#4069)

This commit is contained in:
Darren Schroeder 2021-10-07 10:09:31 -05:00 committed by GitHub
parent 97d17311f4
commit 22cfe4391e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,7 +372,7 @@ pub fn cli(
LineResult::ClearHistory => {
if options.save_history {
rl.clear_history();
let _ = rl.append_history(&history_path);
std::fs::remove_file(&history_path)?;
}
}