diff --git a/src/config.rs b/src/config.rs index 24859c8..a640a59 100644 --- a/src/config.rs +++ b/src/config.rs @@ -191,6 +191,9 @@ pub fn init(cli: &Cli) -> Result<()> { .merge(Yaml::file(color_file)) .extract::()?; config.color = base16; + if let Some(data_dir) = cli.data_dir.clone() { + config.data_home = data_dir; + } CONFIG .set(config) .map_err(|config| eyre!("failed to set config {config:?}"))