Add support for an init file ~/.lesskeyrc

This commit is contained in:
Oleksandr Kozachuk
2022-12-15 19:02:05 +01:00
parent f41200050e
commit 18faa1d766
3 changed files with 32 additions and 5 deletions
+7
View File
@@ -1,5 +1,12 @@
use crate::password::{Comment, Name, PasswordRef};
use home::home_dir;
use std::fmt;
use std::path::PathBuf;
lazy_static! {
pub static ref HISTORY_FILE: PathBuf = home_dir().unwrap().join(".lesskey_history");
pub static ref INIT_FILE: PathBuf = home_dir().unwrap().join(".lesskeyrc");
}
#[derive(thiserror::Error, Debug, PartialEq)]
pub enum LKErr<'a> {