mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
remove history file after clearing it (#4069)
This commit is contained in:
@ -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)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user