diff --git a/Cargo.lock b/Cargo.lock
index 9e6b6bdb7f..17e581016b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3996,6 +3996,7 @@ dependencies = [
"thiserror 2.0.12",
"typetag",
"web-time",
+ "windows 0.56.0",
"windows-sys 0.48.0",
]
diff --git a/crates/nu-cli/src/commands/history/history_.rs b/crates/nu-cli/src/commands/history/history_.rs
index ff6746527d..10f0a211de 100644
--- a/crates/nu-cli/src/commands/history/history_.rs
+++ b/crates/nu-cli/src/commands/history/history_.rs
@@ -1,5 +1,8 @@
use nu_engine::command_prelude::*;
-use nu_protocol::{HistoryFileFormat, shell_error::io::IoError};
+use nu_protocol::{
+ HistoryFileFormat,
+ shell_error::{self, io::IoError},
+};
use reedline::{
FileBackedHistory, History as ReedlineHistory, HistoryItem, SearchDirection, SearchQuery,
SqliteBackedHistory,
@@ -94,7 +97,7 @@ impl Command for History {
})
})
.ok_or(IoError::new(
- std::io::ErrorKind::NotFound,
+ shell_error::io::ErrorKind::FileNotFound,
head,
history_path,
))?
@@ -110,7 +113,7 @@ impl Command for History {
})
})
.ok_or(IoError::new(
- std::io::ErrorKind::NotFound,
+ shell_error::io::ErrorKind::FileNotFound,
head,
history_path,
))?
diff --git a/crates/nu-cli/src/commands/history/history_import.rs b/crates/nu-cli/src/commands/history/history_import.rs
index 422de40422..360273adc9 100644
--- a/crates/nu-cli/src/commands/history/history_import.rs
+++ b/crates/nu-cli/src/commands/history/history_import.rs
@@ -287,7 +287,7 @@ fn backup(path: &Path, span: Span) -> Result