Skip to content

Commit

Permalink
Fix cli data-dir (#93)
Browse files Browse the repository at this point in the history
fix data-dir set
  • Loading branch information
TornaxO7 authored Aug 13, 2024
1 parent 1680ad8 commit 9e103c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ pub fn init(cli: &Cli) -> Result<()> {
.merge(Yaml::file(color_file))
.extract::<Base16Palette>()?;
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:?}"))
Expand Down

0 comments on commit 9e103c5

Please sign in to comment.