From cff9a17a6d3e871809d95d82280afc941f28d283 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:38:21 +0200 Subject: [PATCH] Clean history configuration --- dot_zshrc.tmpl | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 65bd147..c807508 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -74,22 +74,12 @@ fi # History # --------------------------------------------------------------------------- -# set the maximum number of lines to be saved in the history file -export HISTSIZE="50000" -export SAVEHIST="$HISTSIZE" - -# append new history entries to the history file +# Allow multiple sessions to append to one Zsh command history. setopt APPEND_HISTORY -# save each command to the history file as soon as it is executed +# Write to the history file immediately, not when the shell exits. setopt INC_APPEND_HISTORY -# ignore recording duplicate consecutive commands in the history -setopt HIST_IGNORE_DUPS - -# ignore commands that start with a space in the history -setopt HIST_IGNORE_SPACE - # --------------------------------------------------------------------------- # Git # ---------------------------------------------------------------------------