mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-18 02:50:38 +02:00
fix: match logic of theme directory with settings directory, so ATUIN_CONFIG_DIR is respected (#2707)
This commit is contained in:
@@ -376,8 +376,13 @@ impl ThemeManager {
|
|||||||
PathBuf::from(p)
|
PathBuf::from(p)
|
||||||
} else {
|
} else {
|
||||||
let config_dir = atuin_common::utils::config_dir();
|
let config_dir = atuin_common::utils::config_dir();
|
||||||
let mut theme_file = PathBuf::new();
|
let mut theme_file = if let Ok(p) = std::env::var("ATUIN_CONFIG_DIR") {
|
||||||
theme_file.push(config_dir);
|
PathBuf::from(p)
|
||||||
|
} else {
|
||||||
|
let mut theme_file = PathBuf::new();
|
||||||
|
theme_file.push(config_dir);
|
||||||
|
theme_file
|
||||||
|
};
|
||||||
theme_file.push("themes");
|
theme_file.push("themes");
|
||||||
theme_file
|
theme_file
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user