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

View File

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