about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Cook <llua@gmx.com>2013-07-22 12:26:14 -0400
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-07-22 19:03:54 +0100
commit4e3f838269edf39e10bc051476dac11c4fe24eee (patch)
treec46ad2307717e0f89dda38641e4b5ec5d52219d7
parent709dbbbda82efde2020d9d67a19687c101b91570 (diff)
downloadzsh-4e3f838269edf39e10bc051476dac11c4fe24eee.tar.gz
zsh-4e3f838269edf39e10bc051476dac11c4fe24eee.tar.xz
zsh-4e3f838269edf39e10bc051476dac11c4fe24eee.zip
31558: name of qemu executable changed in completion.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_qemu6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 24286df44..fba3d5392 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-22  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* Eric Cook: 31558: Completion/Command/Unix/_qemu: name of
+	binary has changed.
+
 2013-07-21  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 31549: Src/exec,c, Src/zsh.h: replace ad-hoc subsh_close file
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' \