mirror of
https://github.com/nushell/nushell.git
synced 2025-01-23 14:50:09 +01:00
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 => {
|
||||
if options.save_history {
|
||||
rl.clear_history();
|
||||
let _ = rl.append_history(&history_path);
|
||||
std::fs::remove_file(&history_path)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user