From 918e503ff75f5b6d7f7d789098f13dcf1bc02146 Mon Sep 17 00:00:00 2001 From: memdmp Date: Fri, 3 Jan 2025 03:23:08 +0100 Subject: fix: when histsize is set to 30, no it isnt --- zuwu.zsh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'zuwu.zsh') 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 <>~/.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 -- cgit v1.2.3