summaryrefslogtreecommitdiff
path: root/plugins/gh/gh.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gh/gh.plugin.zsh')
-rw-r--r--plugins/gh/gh.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gh/gh.plugin.zsh b/plugins/gh/gh.plugin.zsh
index 17995e1cf..9263220ca 100644
--- a/plugins/gh/gh.plugin.zsh
+++ b/plugins/gh/gh.plugin.zsh
@@ -19,7 +19,7 @@ command mkdir -p "$ZSH_CACHE_DIR/completions"
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `gh`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_gh" ]]; then
- declare -A _comps
+ typeset -g -A _comps
autoload -Uz _gh
_comps[gh]=_gh
fi