diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2013-11-07 14:52:31 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2013-11-07 14:52:31 +0100 |
commit | d799ac78a744a5359563af55b4dee9e91255a1dc (patch) | |
tree | 73475ed7089e6ee050085a96b88018994b43bdfc /Completion/Unix/Command/_qemu | |
parent | abfb3b136a4ad5b2832fb7d920442a2bb28c0697 (diff) | |
parent | 375115c7dfd6dff576915d25fe2ecdd381dd9d81 (diff) | |
download | zsh-d799ac78a744a5359563af55b4dee9e91255a1dc.tar.gz zsh-d799ac78a744a5359563af55b4dee9e91255a1dc.zip |
Merge branch 'upstream' into debian
Diffstat (limited to 'Completion/Unix/Command/_qemu')
-rw-r--r-- | Completion/Unix/Command/_qemu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_qemu b/Completion/Unix/Command/_qemu index db4b3a445..8ba7140a1 100644 --- a/Completion/Unix/Command/_qemu +++ b/Completion/Unix/Command/_qemu @@ -1,8 +1,8 @@ -#compdef qemu +#compdef -P qemu(|-system-*) _qemu_log_items () { local -a opts hline - qemu -d \? | while read -A hline; do + $service -d \? | while read -A hline; do [[ $hline[1] = Log ]] && continue opts=($opts "${hline[1]}[${hline[2,-1]}]") done @@ -11,7 +11,7 @@ _qemu_log_items () { local _qemu_machines -_qemu_machines=(${${${(f)"$(qemu -M \?)"}[2,-1]}%% *}) +_qemu_machines=(${${${(f)"$($service -M \?)"}[2,-1]}%% *}) _arguments \ '-'{fda,fdb,hda,hdb,hdc,hdd,cdrom}':disk image:_files' \ |