aboutsummaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
authorJonas Maier <jonas@x77.dev>2026-05-14 15:21:01 +0200
committerJonas Maier <jonas@x77.dev>2026-05-14 15:21:01 +0200
commit7cb3e5fbf183c24a91c75c9afed85127ebf5123c (patch)
tree55bb23c34ad981f0e4e8ea235c83dab6079ad793 /src/history.rs
parentff8707271d84b72e2ee4b3bae4b14e6e9316e773 (diff)
downloadpish-7cb3e5fbf183c24a91c75c9afed85127ebf5123c.tar.gz
correct handling of XDG dirs
Diffstat (limited to 'src/history.rs')
-rw-r--r--src/history.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/history.rs b/src/history.rs
index b4eb88b..c21c299 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -6,7 +6,7 @@ use std::env::current_dir;
use std::path::PathBuf;
fn db_file() -> PathBuf {
- crate::basedir::data_dir().join("history.db")
+ crate::basedir::state_dir().join("history.db")
}
#[derive(Clone)]