mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-06 09:41:07 +01:00
unposted: _libvirt: Add another noglob. (Follow-up to 39199)
This commit is contained in:
parent
420cde9158
commit
be4c072cf5
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2016-09-14 Marko Myllynen <myllynen@redhat.com>
|
||||
|
||||
* unposted: Completion/Unix/Command/_libvirt: Add another
|
||||
noglob. (Follow-up to 39199)
|
||||
|
||||
2016-09-14 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 39199: Completion/Unix/Command/_libvirt: Support libvirt URLs
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ case $state in
|
|||
done
|
||||
[[ -z $cmd ]] && return 1
|
||||
if [[ $words[CURRENT-1] == --server ]]; then
|
||||
_wanted servers expl server compadd ${=${(S)${${(f)$(_call_program -p servers virt-admin ${(Q)conn_opt} srv-list)}##*--- }//[0-9]* }} && return 0
|
||||
_wanted servers expl server compadd ${=${(S)${${(f)$(_call_program -p servers noglob virt-admin ${(Q)conn_opt} srv-list)}##*--- }//[0-9]* }} && return 0
|
||||
fi
|
||||
if [[ $words[CURRENT-1] == --client ]]; then
|
||||
local srv ; (( ${(k)words[(I)--server]} > 0 )) && srv=${words[1+${(k)words[(I)--server]}]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue