From d9690b1a67dc8c3eac06d5368b50add3d497cf1c Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 24 Mar 2020 01:37:45 +0900 Subject: [PATCH] Fix regexp which collects subcommands fix: https://github.com/zsh-users/zsh-completions/issues/677 --- src/_kitchen | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_kitchen b/src/_kitchen index dee5c58..55f59f6 100644 --- a/src/_kitchen +++ b/src/_kitchen @@ -35,6 +35,7 @@ # ------- # # * Peter Eisentraut (https://github.com/petere) +# * Shohei YOSHIDA (https://github.com/syohex) # # ------------------------------------------------------------------------------ @@ -67,7 +68,7 @@ _kitchen() { _kitchen_commands() { local commands - commands=("${(@f)$(_call_program commands $service help | sed -n 's/^ kitchen \([[:alpha:]]*\) [ [].*# \(.*\)$/\1:\2/p')}") + commands=("${(@f)$(_call_program commands $service help | sed -n 's/^ kitchen \([[:alpha:]]*\) .*# \(.*\)$/\1:\2/p')}") _describe -t commands 'kitchen commands' commands }