From 2a87eccbdbb4ef66a8694aea9bf3f5360a2aa578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9E=97=E4=BC=9F?= Date: Sat, 28 Feb 2026 14:58:11 +0800 Subject: [PATCH 1/2] Fix history path on Windows --- src/session.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/session.rs b/src/session.rs index 8cfefac..c34a999 100644 --- a/src/session.rs +++ b/src/session.rs @@ -261,6 +261,8 @@ fn print_batches_with_sep(batches: &[RecordBatch], delimiter: u8) -> Result String { format!( "{}/.arrow_history", - std::env::var("HOME").unwrap_or_else(|_| ".".to_string()) + std::env::var("HOME") + .or_else(|_| std::env::var("USERPROFILE")) + .unwrap_or_else(|_| ".".to_string()) ) } From f90d6c8f540d95d39816266919517364e3c715ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9E=97=E4=BC=9F?= Date: Sat, 28 Feb 2026 14:59:51 +0800 Subject: [PATCH 2/2] Bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f84f0ff..8f37bf0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/sundy-li/arrow_cli" edition = "2024" license = "Apache-2.0" name = "arrow_cli" -version = "0.3.1" +version = "0.4.0" [dependencies]