summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-12-16 10:50:34 +0100
committerMarc Cornellà <hello@mcornella.com>2021-12-16 10:50:34 +0100
commit4b4cc9a4a57468218b25b10c21c1e6060f42544b (patch)
treeb4448392e80f63a63d04d678c3d824dbecde6703 /lib
parent7d03ea18eda8d89316fdb035fb3840f48a065338 (diff)
downloadzsh-4b4cc9a4a57468218b25b10c21c1e6060f42544b.tar.gz
zsh-4b4cc9a4a57468218b25b10c21c1e6060f42544b.tar.bz2
zsh-4b4cc9a4a57468218b25b10c21c1e6060f42544b.zip
fix(cli): fix plugin and theme suggestions in completion for older zsh versions
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh
index aed84e08f..4917bc354 100644
--- a/lib/cli.zsh
+++ b/lib/cli.zsh
@@ -68,10 +68,12 @@ function _omz {
_describe 'plugin' valid_plugins ;;
plugin::info)
- local -aU plugins=("$ZSH"/plugins/*/{_*,*.plugin.zsh}(.N:h:t) "$ZSH_CUSTOM"/plugins/*/{_*,*.plugin.zsh}(.N:h:t))
+ local -aU plugins
+ plugins=("$ZSH"/plugins/*/{_*,*.plugin.zsh}(.N:h:t) "$ZSH_CUSTOM"/plugins/*/{_*,*.plugin.zsh}(.N:h:t))
_describe 'plugin' plugins ;;
theme::(set|use))
- local -aU themes=("$ZSH"/themes/*.zsh-theme(.N:t:r) "$ZSH_CUSTOM"/**/*.zsh-theme(.N:r:gs:"$ZSH_CUSTOM"/themes/:::gs:"$ZSH_CUSTOM"/:::))
+ local -aU themes
+ themes=("$ZSH"/themes/*.zsh-theme(.N:t:r) "$ZSH_CUSTOM"/**/*.zsh-theme(.N:r:gs:"$ZSH_CUSTOM"/themes/:::gs:"$ZSH_CUSTOM"/:::))
_describe 'theme' themes ;;
esac
elif (( CURRENT > 4 )); then