Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: alias of completion
- X-seq: zsh-users 23202
- From: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- To: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- Subject: Re: alias of completion
- Date: Sat, 03 Mar 2018 06:41:26 +0000
- Cc: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/VrITJ3hZwqMWRlrPCPun6bX/st9nXxEnno5cIxiTlg=; b=dktv2vjYATdH/8Jx/MVFk43t48DFMrqybnvvWhb592i4NBnwz9MvElDcdJHZvhsHgp 9r6RruJajZI5jV669pvBWP+EOVD19x0ljHo3zT3rEiIK9GD1ocTiTJLs7ussDoKVzMsh PYQbUqjE2CKYtfaQrfPaHGcDeVeAenzc/1/OetzOSF4//QyT/rj0MVc/ruOC4CRbHOW3 mhAdXXOYZBepUBWRdiKvOuz6HelO6ZPUwjpiuKvPuY/noJrsZxcg+x6+fgnnqFxk42JR cbosnhXnr7MCbef9SywzproaQsp82UMo3zkSjClgXAb5Xm7eHgUsPkVxD47G94lWcpNN vIMg==
- In-reply-to: <20180302222324.z5x2ev65742vltbk@gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAP+y1xCmn1bDmajXY39N=TOgdRbjGLdGVMJrUPnpq_--6+3QFA@mail.gmail.com> <9b7ec742-8786-452b-26b7-c064d855f7c2@googlemail.com> <20180302222324.z5x2ev65742vltbk@gmail.com>
Joey that’s hilarious... I can’t even imagine what kind of tests you did,
but some voodoo must have been involved... XD
Il giorno ven 2 mar 2018 alle 23:23 Joey Pabalinas <joeypabalinas@xxxxxxxxx>
ha scritto:
> On Fri, Mar 02, 2018 at 01:08:09PM +0100, m0viefreak wrote:
> > You could modify CURRENT and words in a custom completion function and
> > then just call _normal ("docker ls" is one word more than
> > "mydockerwrapper"):
> >
> > _mydockerwrapper() {
> > ((CURRENT++))
> > words=(docker ls "${words[@]:1}")
> > _normal
> > }
> > compdef _mydockerwrapper mydockerwrapper
>
> Holy hell, you don't know how long I've been trying to figure out
> exactly that (but with systemctl instead of docker). At one point
> I even to screw up so badly that when I did `scrs <TAB>` my computer
> simply rebooted itself. Dumbfounded, I immediately tested it again
> as soon as my OS booted to make sure I wasn't going crazy and (as you
> probably saw coming from a mile away) promptly rebooted my computer
> with another fateful <Tab>.
>
> But this works *perfectly*.
>
> I didn't ask the original question, but nonetheless thank you!
>
> --
> Joey Pabalinas
>
--
Pier Paolo Grassi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author