summaryrefslogtreecommitdiff
path: root/bashhist.c
diff options
context:
space:
mode:
Diffstat (limited to 'bashhist.c')
-rw-r--r--bashhist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bashhist.c b/bashhist.c
index 5d2b817..6468a53 100644
--- a/bashhist.c
+++ b/bashhist.c
@@ -270,6 +270,9 @@ load_history ()
Note that the history file is automatically truncated to the
size of HISTSIZE if the user does not explicitly set the size
differently. */
+ set_if_not ("HISTSIZE", "500");
+ sv_histsize ("HISTSIZE");
+
set_if_not ("HISTFILESIZE", get_string_value ("HISTSIZE"));
sv_histsize ("HISTFILESIZE");