on master help sign in
use _describe instead of _values on subcommand
41a1952Kienyew
assets/completions/bat.zsh+3−1
@@ -76,7 +76,9 @@ _bat_main() {
76
76
77# first positional argument
77# first positional argument
78if (( ${#words} == 2 )); then
78if (( ${#words} == 2 )); then
79− _values subcommand cache
79+ local -a subcommands
80+ subcommands=('cache:Modify the syntax-definition and theme cache')
81+ _describe subcommand subcommands
80 _bat_main
82 _bat_main
81else
83else
82 case $words[2] in
84 case $words[2] in