feat: Rename env variable for history file path

according to: https://github.com/denisidoro/navi/pull/977#discussion_r2059102393
This commit is contained in:
Aleksey @soar Smyrnov 2025-04-29 23:28:39 -06:00 committed by Aleksey Smyrnov
parent c572e01526
commit 125e1e6c89
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ pub const FINDER: &str = "NAVI_FINDER";
pub const CONFIG: &str = "NAVI_CONFIG";
pub const CONFIG_YAML: &str = "NAVI_CONFIG_YAML";
pub const VARIABLES_HISTORY_FILE: &str = "NAVI_VARIABLES_HISTORY_FILE";
pub const VAR_HISTORY: &str = "NAVI_VAR_HISTORY";
pub fn parse<T: FromStr>(varname: &str) -> Option<T> {
if let Ok(x) = env::var(varname) {

View file

@ -91,7 +91,7 @@ pub fn cheat_paths(path: Option<String>) -> Result<String> {
}
pub fn variables_history_pathbuf() -> Option<PathBuf> {
if let Ok(v) = env::var(env_var::VARIABLES_HISTORY_FILE) {
if let Ok(v) = env::var(env_var::VAR_HISTORY) {
let pathbuf = PathBuf::from(v);
if !pathbuf.exists() {