Fixed history filename

This commit is contained in:
Justine 2023-02-18 14:37:59 +01:00
parent 8c0528f92c
commit 31b5fea2af

View File

@ -45,7 +45,7 @@ pub fn get_curr_history_number() -> i32 {
}
pub fn get_history() -> Result<String, std::io::Error> {
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();