aboutsummaryrefslogtreecommitdiffstats
path: root/src/history.c
diff options
context:
space:
mode:
authorGravatar Lance Borden 2025-08-19 15:03:34 -0400
committerGravatar Lance Borden 2025-08-19 15:03:34 -0400
commit5293253c628c54c9096f3d07191a5934a6d979aa (patch)
tree6a915821aa2bb0653c3e06f8f1b69c4fff5fe308 /src/history.c
parentupdate compil instructions (diff)
keep history to home dir and use .config instead of custom dotfile dir
Diffstat (limited to 'src/history.c')
-rw-r--r--src/history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/history.c b/src/history.c
index 93d6983..760461e 100644
--- a/src/history.c
+++ b/src/history.c
@@ -34,7 +34,7 @@ static char *get_history_path() {
return NULL;
}
- size_t path_length = strlen(pw->pw_dir) + strlen("/.lush/.history") + 1;
+ size_t path_length = strlen(pw->pw_dir) + strlen("/.lush_history") + 1;
char *path = malloc(path_length);
if (!path) {
perror("malloc");
@@ -42,7 +42,7 @@ static char *get_history_path() {
}
strcpy(path, pw->pw_dir);
- strcat(path, "/.lush/.history");
+ strcat(path, "/.lush_history");
return path;
}