diff options
author | 2025-01-03 03:23:08 +0100 | |
---|---|---|
committer | 2025-01-03 03:23:08 +0100 | |
commit | 918e503ff75f5b6d7f7d789098f13dcf1bc02146 (patch) | |
tree | a4ad938cd23c4f2bb70b175a8d44cdffff3330ea /zuwu.zsh | |
parent | a1c0d8bec88b1298ce22a81acdfb3e07cc12f4bc (diff) | |
download | zuwu-918e503ff75f5b6d7f7d789098f13dcf1bc02146.tar.gz zuwu-918e503ff75f5b6d7f7d789098f13dcf1bc02146.tar.bz2 zuwu-918e503ff75f5b6d7f7d789098f13dcf1bc02146.tar.lz zuwu-918e503ff75f5b6d7f7d789098f13dcf1bc02146.zip |
fix: when histsize is set to 30, no it isnt
Diffstat (limited to 'zuwu.zsh')
-rwxr-xr-x | zuwu.zsh | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |