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] 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()) ) }