From c6019e7f57631fe311c8a2cb2250c5e64db25f33 Mon Sep 17 00:00:00 2001 From: mattmc3 Date: Fri, 27 Oct 2023 12:07:11 -0400 Subject: [PATCH] Fix grizwold zopt tests --- tests/test_zsetopts.md | 2 +- tests/zdotdir/custom/plugins/grizwold/grizwold.plugin.zsh | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/test_zsetopts.md b/tests/test_zsetopts.md index c22371b..b8d3b38 100644 --- a/tests/test_zsetopts.md +++ b/tests/test_zsetopts.md @@ -72,13 +72,13 @@ less than 10 enabled zsh opts % optcnt=$(setopt | wc -l | tr -d ' ') % test $optcnt -gt 150 && echo "zillions of enabled zsh options (>150)" zillions of enabled zsh options (>150) -% setopt localoptions % ``` ## Teardown ```zsh +% unsetopt $grizwold_zopts % t_teardown % ``` diff --git a/tests/zdotdir/custom/plugins/grizwold/grizwold.plugin.zsh b/tests/zdotdir/custom/plugins/grizwold/grizwold.plugin.zsh index 0ad907a..6f076cb 100644 --- a/tests/zdotdir/custom/plugins/grizwold/grizwold.plugin.zsh +++ b/tests/zdotdir/custom/plugins/grizwold/grizwold.plugin.zsh @@ -1,6 +1,6 @@ () { setopt interactivecomments - local zopts=( + typeset -ga grizwold_zopts=( noaliases aliasfuncdef allexport @@ -98,7 +98,7 @@ incappendhistorytime # interactive interactivecomments - ksharrays + # ksharrays kshautoload kshglob # kshoptionprint @@ -183,6 +183,5 @@ # xtrace # zle ) - - setopt $zopts + setopt $grizwold_zopts }