Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit d1d10da

Browse files
fix: use ~/.config/s2/config.toml for config path (#188)
1 parent d902877 commit d1d10da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/config.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ fn config_path() -> Result<PathBuf, CliConfigError> {
4545

4646
#[cfg(not(target_os = "windows"))]
4747
fn config_path() -> Result<PathBuf, CliConfigError> {
48-
let mut path = dirs::config_dir().ok_or(CliConfigError::DirNotFound)?;
48+
let mut path = dirs::home_dir().ok_or(CliConfigError::DirNotFound)?;
49+
path.push(".config");
4950
path.push("s2");
5051
path.push("config.toml");
5152
Ok(path)

0 commit comments

Comments
 (0)