From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20801 invoked by alias); 3 Mar 2018 06:41:42 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23202 Received: (qmail 6550 invoked by uid 1010); 3 Mar 2018 06:41:42 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f53.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.53):SA:0(-1.9/5.0):. Processed in 1.933207 secs); 03 Mar 2018 06:41:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: pierpaolog@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/VrITJ3hZwqMWRlrPCPun6bX/st9nXxEnno5cIxiTlg=; b=UJUAwTjxgkM1T4MQjAlSRmLSqZ/fk44gcv97gwiiNqrKUYqcygSrN45dq5KPu8QF4W PScT83K6B9KGZL4l5ZQPwy96L2uLrrWspb9TmAv8Mb7aCeKW7U7//ixAxhUVKMEuFOl6 Q625kTRw8w0Jprul+OHaoxKB3d41zJrZ4UGjcl53AKrOHk9tG1golpK8ipKXbvSzzaDH IbgJkRyD3OA9ANM0Rj8iOisJhnhbvKwlpbVqILESnqyX8Ssfhdi1Ho8/YPy6fAKCRbc2 pTWF2oPWYxn8P0Y84GUVMT5UOTFMeLklTi6vM/HHqwIgqPYQDck6CMcfzJqBm6KDZg5l pZ2A== X-Gm-Message-State: APf1xPCYLdkTzXjpokiu7Cme0Y3pVo1UWI6z9YoxCqE7l8adjYwUlyqj uSXSUFjD9CaAMCetYkDhIk3SrvbMlPlL9W0u1xA= X-Google-Smtp-Source: AG47ELuiY1FYPlkL9/QLFmWP+WMjfd/AsBTxQbrb/0nHLh4obdjQQM4zXVEj/cZWW0/T/nMuDy1lR/neP37lSfc/W7w= X-Received: by 10.31.156.71 with SMTP id f68mr5406772vke.129.1520059296821; Fri, 02 Mar 2018 22:41:36 -0800 (PST) MIME-Version: 1.0 References: <9b7ec742-8786-452b-26b7-c064d855f7c2@googlemail.com> <20180302222324.z5x2ev65742vltbk@gmail.com> In-Reply-To: <20180302222324.z5x2ev65742vltbk@gmail.com> From: Pier Paolo Grassi Date: Sat, 03 Mar 2018 06:41:26 +0000 Message-ID: Subject: Re: alias of completion To: Joey Pabalinas Cc: m0viefreak , zsh-users@zsh.org Content-Type: multipart/alternative; boundary="001a1141bffc6cb88805667c6217" --001a1141bffc6cb88805667c6217 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joey that=E2=80=99s hilarious... I can=E2=80=99t 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 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=3D(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 ` 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 . > > But this works *perfectly*. > > I didn't ask the original question, but nonetheless thank you! > > -- > Joey Pabalinas > --=20 Pier Paolo Grassi --001a1141bffc6cb88805667c6217--