use /etc/icepick/icepick.toml as config file

This commit is contained in:
Ryan Heywood 2025-02-08 17:15:52 -05:00
parent dcb9c50d29
commit 5224bc00a3
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ pub fn do_cli_thing() {
}
None
});
let config_path = config_file.unwrap_or_else(|| "icepick.toml".to_string());
let config_path = config_file.unwrap_or_else(|| "/etc/icepick/icepick.toml".to_string());
let config_content = std::fs::read_to_string(config_path).expect("can't read config file");
let mut config: Config = match toml::from_str(&config_content) {
Ok(config) => config,