From 69ff5cc5b609666ed34113dd7fea0325013f207a Mon Sep 17 00:00:00 2001 From: memdmp Date: Sat, 1 Mar 2025 02:26:00 +0100 Subject: feat: force save by default --- zuwu.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'zuwu.zsh') diff --git a/zuwu.zsh b/zuwu.zsh index fa500f9..938979a 100755 --- a/zuwu.zsh +++ b/zuwu.zsh @@ -294,8 +294,9 @@ __sethist # History Size Determination if [[ "$AVOID_SETTING_HIST_INFO" == "" ]]; then - if ! [ -n "${HISTSIZE+1}" ] || ! [ -n "${SAVEHIST+1}" ]; then - eval_append ~/.zshrc "$(</dev/null 2>/dev/null; then + eval_append ~/.zshrc "$(</dev/null 2>/dev/null && __sethist || true EOF )" + fi fi fi -- cgit v1.2.3