From 41a1952928ca6154f92a94d15a27281fe3eb33fd Mon Sep 17 00:00:00 2001 From: Kienyew Date: Sun, 30 Aug 2020 16:59:35 +0800 Subject: [PATCH] use _describe instead of _values on subcommand --- assets/completions/bat.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/completions/bat.zsh b/assets/completions/bat.zsh index 2dc8e221..ecfb5ba2 100644 --- a/assets/completions/bat.zsh +++ b/assets/completions/bat.zsh @@ -76,7 +76,9 @@ _bat_main() { # first positional argument if (( ${#words} == 2 )); then - _values subcommand cache + local -a subcommands + subcommands=('cache:Modify the syntax-definition and theme cache') + _describe subcommand subcommands _bat_main else case $words[2] in