Fixed history filename
This commit is contained in:
parent
8c0528f92c
commit
31b5fea2af
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user