forked from extern/nushell
remove history file after clearing it (#4069)
This commit is contained in:
parent
97d17311f4
commit
22cfe4391e
@ -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)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user