From 31b5fea2af21a9c5191bf4a9c6e9ed2c04a7f219 Mon Sep 17 00:00:00 2001 From: Justine Date: Sat, 18 Feb 2023 14:37:59 +0100 Subject: [PATCH] Fixed history filename --- src/shell/history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/history.rs b/src/shell/history.rs index aa6c323..8e63148 100644 --- a/src/shell/history.rs +++ b/src/shell/history.rs @@ -45,7 +45,7 @@ pub fn get_curr_history_number() -> i32 { } pub fn get_history() -> Result { - let filepath = dirs::home_dir().unwrap().join("history.sqish"); + let filepath = dirs::home_dir().unwrap().join(".history.sqish"); let file = File::open(filepath)?; let contents = BufReader::new(file).lines(); let mut res = String::new();