Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More _libvirt (virsh) completion tweaks
- X-seq: zsh-workers 39187
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Marko Myllynen <myllynen@xxxxxxxxxx>
- Subject: Re: More _libvirt (virsh) completion tweaks
- Date: Tue, 6 Sep 2016 00:16:52 +0000
- Cc: zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=mkvI2qvgWj4yrTmT3d8g1Og2kXE=; b=lGpV9K /XAkjgAu3Al/aekJWtt4+gspUpz0Wiv7UPitmqDoimB8Pv7W5r+YzJV8Lk1YNOpy 721D85URaxczgI0Hy3R63uO42XxU+NG7nnVx0F8XeDncc2yp7pLUVi3u0aMAVzDf 1rJEFYuMmVKAi6x/EGhq16QXcE8zhxWTmuu0w=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=mkvI2qvgWj4yrTmT3d8g1Og2kXE=; b=FJT3m a+vf+1IKCzh4hze68mX/+rH74YuUyYdORF5hhQ+MmWDyEQPc3IRPUTrp5vE3cfTS 4WaiBLUTbE+eoGaGpCByz6zeuXr0ktu2MmxEW87ulrwhR26InhUw1STpVVnQeY+i oH4Vu7MXHcoAeHInKOuPj2kM9fhxYHMtBLHtyo=
- In-reply-to: <2a9d0f77-a2af-a6aa-93b6-962204258164@redhat.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <2a9d0f77-a2af-a6aa-93b6-962204258164@redhat.com>
Marko Myllynen wrote on Mon, Sep 05, 2016 at 10:39:16 +0300:
> Most notably, we now complete domains without the --domain option in
> case no other options are provided. I picked up few commands which
> I think are most often used, please feel free to adjust the list of
> commands if you have other commands in mind.
Sure, we can add them as we run across them.
> +++ b/Completion/Unix/Command/_libvirt
> @@ -127,13 +127,13 @@ case $state in
> - if [[ $words[-2] == --(dir|emulatorbin|file|mountpoint|*path|script|source-dev) || $words[-1] == (/*|.*) ]]; then
> + if [[ $words[CURRENT-1] == --(dir|emulatorbin|file|mountpoint|*path|script|source-dev) || $words[-1] == (/*|.*) ]]; then
The second disjunct should use $words[CURRENT] rather than $words[-1].
I've amended this and pushed.
Thanks for all the patches1
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author