Skip to content

Commit

Permalink
Fix grizwold zopt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmc3 committed Oct 27, 2023
1 parent 18650fe commit c6019e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_zsetopts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
%
```
7 changes: 3 additions & 4 deletions tests/zdotdir/custom/plugins/grizwold/grizwold.plugin.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
() {
setopt interactivecomments
local zopts=(
typeset -ga grizwold_zopts=(
noaliases
aliasfuncdef
allexport
Expand Down Expand Up @@ -98,7 +98,7 @@
incappendhistorytime
# interactive
interactivecomments
ksharrays
# ksharrays
kshautoload
kshglob
# kshoptionprint
Expand Down Expand Up @@ -183,6 +183,5 @@
# xtrace
# zle
)

setopt $zopts
setopt $grizwold_zopts
}

0 comments on commit c6019e7

Please sign in to comment.