completions/zsh: Fix incomplete input names

Input name with ':' in it were not suggested entirely.
This commit is contained in:
Hugo Machet 2023-10-18 13:23:47 +02:00
parent de5f21cbb4
commit ad1e0aa752
No known key found for this signature in database
GPG Key ID: B247C0CAF73268E4

View File

@ -103,7 +103,7 @@ _riverctl()
_arguments '1: :->name' '2: :->commands' ':: :->args'
case "$state" in
name) _values 'inputs' $(riverctl list-inputs | grep -e '^[^[:space:]]') ;;
name) _alternative "arguments:args:($(riverctl list-inputs | grep -e '^[^[:space:]]'))" ;;
commands)
local -a input_subcommands
input_subcommands=(