diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2020-03-24 01:37:45 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2020-03-24 01:38:18 +0900 |
| commit | d9690b1a67dc8c3eac06d5368b50add3d497cf1c (patch) | |
| tree | aef8fa2968858df32f1d14829809833eed54ad87 /src/_kitchen | |
| parent | Merge pull request #691 from syohex/syohex/update-node (diff) | |
| download | zsh-completions-d9690b1a67dc8c3eac06d5368b50add3d497cf1c.tar zsh-completions-d9690b1a67dc8c3eac06d5368b50add3d497cf1c.tar.gz zsh-completions-d9690b1a67dc8c3eac06d5368b50add3d497cf1c.tar.bz2 zsh-completions-d9690b1a67dc8c3eac06d5368b50add3d497cf1c.tar.lz zsh-completions-d9690b1a67dc8c3eac06d5368b50add3d497cf1c.tar.xz zsh-completions-d9690b1a67dc8c3eac06d5368b50add3d497cf1c.tar.zst zsh-completions-d9690b1a67dc8c3eac06d5368b50add3d497cf1c.zip | |
Fix regexp which collects subcommands
fix: https://github.com/zsh-users/zsh-completions/issues/677
Diffstat (limited to 'src/_kitchen')
| -rw-r--r-- | src/_kitchen | 3 |
1 files changed, 2 insertions, 1 deletions
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 } |
