From 64a0ed3b0354f137d41d41611cefb0f5f75d34ad Mon Sep 17 00:00:00 2001 From: G'lek Tarssza Date: Fri, 23 May 2025 15:30:51 -0600 Subject: [PATCH] Provide autocompletion for `--enabled` flag. --- lib/cli.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cli.zsh b/lib/cli.zsh index 1f835a336..906225370 100644 --- a/lib/cli.zsh +++ b/lib/cli.zsh @@ -72,6 +72,10 @@ function _omz { local -aU plugins plugins=("$ZSH"/plugins/*/{_*,*.plugin.zsh}(-.N:h:t) "$ZSH_CUSTOM"/plugins/*/{_*,*.plugin.zsh}(-.N:h:t)) _describe 'plugin' plugins ;; + plugin::list) + local -a opts + opts=('--enabled:List enabled plugins only') + _describe -o 'options' opts ;; theme::(set|use)) local -aU themes themes=("$ZSH"/themes/*.zsh-theme(-.N:t:r) "$ZSH_CUSTOM"/**/*.zsh-theme(-.N:r:gs:"$ZSH_CUSTOM"/themes/:::gs:"$ZSH_CUSTOM"/:::))