summaryrefslogtreecommitdiffstats
path: root/src/dirs.rs
blob: 45674e3c1318e5ba76893a93ddf3346653ea1128 (plain) (blame)
1
2
3
4
5
6
7
8
9
pub fn config_file() -> std::path::PathBuf {
    config_dir().join("config.toml")
}

fn config_dir() -> std::path::PathBuf {
    let project_dirs =
        directories::ProjectDirs::from("", "", "nbsh").unwrap();
    project_dirs.config_dir().to_path_buf()
}