mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
feat: Rename env variable for history file path
according to: https://github.com/denisidoro/navi/pull/977#discussion_r2059102393
This commit is contained in:
parent
c572e01526
commit
125e1e6c89
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue