aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-03 03:23:08 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-01-03 03:23:08 +0100
commit918e503ff75f5b6d7f7d789098f13dcf1bc02146 (patch)
treea4ad938cd23c4f2bb70b175a8d44cdffff3330ea
parenta1c0d8bec88b1298ce22a81acdfb3e07cc12f4bc (diff)
downloadzuwu-918e503ff75f5b6d7f7d789098f13dcf1bc02146.tar.gz
zuwu-918e503ff75f5b6d7f7d789098f13dcf1bc02146.tar.bz2
zuwu-918e503ff75f5b6d7f7d789098f13dcf1bc02146.tar.lz
zuwu-918e503ff75f5b6d7f7d789098f13dcf1bc02146.zip

fix: when histsize is set to 30, no it isnt

-rwxr-xr-xzuwu.zsh13
1 files changed, 10 insertions, 3 deletions
diff --git a/zuwu.zsh b/zuwu.zsh
index 7004644..d1a2d4d 100755
--- a/zuwu.zsh
+++ b/zuwu.zsh
@@ -23,9 +23,9 @@ fi
if ! grep 'HISTSIZE' ~/.zshrc >/dev/null 2>/dev/null; then
<<EOF >>~/.zshrc
# Lines configured by zsh-newuser-install
-: "\${HISTFILE:="~/.histfile"}"
-: "\${HISTSIZE:="10000"}"
-: "\${SAVEHIST:="10000"}"
+HISTFILE="~/.histfile"
+HISTSIZE="10000"
+SAVEHIST="10000"
# End of lines configured by zsh-newuser-install
EOF
fi
@@ -172,3 +172,10 @@ __sethist() {
__sethist
+# For some reason, 30 tends to be a common "default" setting for this when not manually specified on shitty systems
+if [[ "$HISTSIZE" == "30" ]]; then
+ HISTSIZE="10000"
+fi
+if [[ "$SAVEHIST" == "30" ]]; then
+ SAVEHIST="10000"
+fi