aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-01 02:19:50 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-01 02:19:50 +0100
commitc9a27c6a5a29077525db86b955d04ab21bf18f59 (patch)
tree52e8b6439c6b620cfdc2f7e81c12e520715b599b
parentdb824e89845d8ebf63f7caf6a781e4232149343f (diff)
downloadzuwu-c9a27c6a5a29077525db86b955d04ab21bf18f59.tar.gz
zuwu-c9a27c6a5a29077525db86b955d04ab21bf18f59.tar.bz2
zuwu-c9a27c6a5a29077525db86b955d04ab21bf18f59.tar.lz
zuwu-c9a27c6a5a29077525db86b955d04ab21bf18f59.zip

fix: give SAVEHIST the HISTFILE treatment

-rwxr-xr-xzuwu.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/zuwu.zsh b/zuwu.zsh
index 8449765..0646798 100755
--- a/zuwu.zsh
+++ b/zuwu.zsh
@@ -293,8 +293,9 @@ __sethist() {
__sethist
# History Size Determination
-if ! [ -n "${HISTSIZE+1}" ]; then
- eval_append ~/.zshrc "$(<<EOF
+if [[ "$AVOID_SETTING_HIST_INFO" == "" ]]; then
+ if ! [ -n "${HISTSIZE+1}" ] || ! [ -n "${SAVEHIST+1}" ]; then
+ eval_append ~/.zshrc "$(<<EOF
# Lines configured by zsh-newuser-install
HISTFILE="~/.histfile"
HISTSIZE="10000"
@@ -305,6 +306,7 @@ SAVEHIST="10000"
typeset -f __sethist >/dev/null 2>/dev/null && __sethist || true
EOF
)"
+ fi
fi
# For some reason, 30 tends to be a common "default" setting for this when not manually specified on shitty systems