diff options
author | Kienyew <aobi100bt@hotmail.com> | 2020-08-30 16:59:35 +0800 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-09-14 11:28:09 +0200 |
commit | 41a1952928ca6154f92a94d15a27281fe3eb33fd (patch) | |
tree | b94ea6d2b9d3fb3a223e70c7b07581c7cadb9c8e | |
parent | 9885d4ebf0936bb078d418cb243237fabceb7f53 (diff) |
use _describe instead of _values on subcommand
-rw-r--r-- | assets/completions/bat.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |