Skip to content

Commit

Permalink
fixup! fixup! [zsh] fix missing history
Browse files Browse the repository at this point in the history
  • Loading branch information
ghthor committed Feb 23, 2024
1 parent f751a70 commit 53fc218
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/lib/git/status_shortcuts_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,15 @@ test_git_commit_prompt() {
export HISTFILE=$(mktemp -t scm_breeze.XXXXXXXXXX)
export HISTFILESIZE=1000
export HISTSIZE=1000
export SAVEHIST=1000

if [[ $shell == "zsh" ]]; then
export SAVEHIST=1000
zsh_appendhistory=$( (setopt | grep -q appendhistory) && echo "true")
if [ -z $zsh_appendhistory ]; then
setopt appendhistory
trap "unsetopt appendhistory" EXIT
fi
fi

touch a b c d
git add . >/dev/null
Expand Down

0 comments on commit 53fc218

Please sign in to comment.