mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-06-13 04:56:30 +02:00
31558: name of qemu executable changed in completion.
This commit is contained in:
parent
709dbbbda8
commit
4e3f838269
|
@ -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
|
||||
|
|
|
@ -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' \
|
||||
|
|
Loading…
Reference in New Issue