zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] fix for _qemu since the binary is now qemu-system-{x86_64,i386,...}
@ 2013-07-22 16:26 Eric Cook
  0 siblings, 0 replies; only message in thread
From: Eric Cook @ 2013-07-22 16:26 UTC (permalink / raw)
  To: zsh-workers

---
 Completion/Unix/Command/_qemu | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Completion/Unix/Command/_qemu b/Completion/Unix/Command/_qemu
index db4b3a4..8ba7140 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' \
-- 
1.8.3.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-22 16:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-22 16:26 [PATCH] fix for _qemu since the binary is now qemu-system-{x86_64,i386,...} Eric Cook

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).