mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-10 07:16:27 -04:00
Merge pull request #1239 from zsh-users/refactor_openvpn3
Refactor openvpn3
This commit is contained in:
commit
8ef1a35c32
|
|
@ -225,7 +225,7 @@ _openvpn3_command() {
|
|||
_describe -t commands 'openvpn3 commands' openvpn3_cmds
|
||||
else
|
||||
local curcontext="$curcontext"
|
||||
cmd="${${openvpn3_cmds[(r)$words[1]:*]%%:*}}"
|
||||
local cmd="${${openvpn3_cmds[(r)$words[1]:*]%%:*}}"
|
||||
if (($#cmd)); then
|
||||
if (( $+functions[_openvpn3_$cmd] )); then
|
||||
_openvpn3_$cmd
|
||||
|
|
|
|||
Loading…
Reference in a new issue