From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18918 invoked by alias); 14 Sep 2017 06:58:21 -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: X-Seq: 22898 Received: (qmail 24480 invoked by uid 1010); 14 Sep 2017 06:58:21 -0000 X-Qmail-Scanner-Diagnostics: from out3-smtp.messagingengine.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(66.111.4.27):SA:0(-2.6/5.0):. Processed in 0.460717 secs); 14 Sep 2017 06:58:21 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=Fa7s+zBvWMNoWhqBEvoDH6zscO3L0OokXlOG7oTy2sg=; b=DSAomPwi AOvvxFayq/D7fPYW31tM62MmSw0Q5FXCswqc8OzadUi7Rbev8KCuVgLLoL2tABCu sEcoY+5o/p/YIXo5PQD4bvXkAoDowalHtjyGVDZz+W3TxkIfVHd0vhPbovYAmbI9 /uWOZHFuBNWV6nJg3Z2Z4ZWNm81yjR/qTwIr0cIPifxhaniXdkcaGGFcvunbygWo i5bJND4BMqqZFFWM9W6JvACD5fUP9VGRAA6DjKWqDqr+8xx51WWNLWEV9H+gBMQI 7yIiSsFMxEsj1Rw5rTrod/LEAZl3qPAJunOH/Apf5HPBKAZcxAAWcHy/GKheNqFt hQlQjLWGtTULwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=Fa7s+zBvWMNoWhqBEvoDH6zscO3L0OokXlOG7oTy2sg=; b=ZNsC63Yz BV6DKAOL6wlSVc8t/V2FcNrBfr1GLygI2ogwZ0d34UBkwXZu7RTagLqqhh19eKm8 42w6OeXiDHzCF2ZAVlIw90cU3V5xlRoLoFWf8HRnjXRU9IdO+A7k54ASoePKw5V8 p8cCgRfet+ZSSY/jmxgM7N8Uh5CgaBasnr1u2eJmnc3DXcZEUVkXOvPxb+E2oi9k KrBuVcu8asjmzsRvfzuXpir2WUSxewaRgeINp874W03BYS9G5l+C9Ie4s7bz1AkB uyUpT//DQcimLNBpnfiUYyMGZtt/SlgZN1wR2ofjFhbimkj0PgvRzZ+0ds/CvSi5 ehQCuBtpqyTOrQ== X-ME-Sender: X-Sasl-enc: nJHBl2QuJR5C+2eAQkuTq+lOI18wU5PxuJ++0X2fG2oy 1505371739 Date: Thu, 14 Sep 2017 06:48:57 +0000 From: Daniel Shahaf To: dana Cc: zsh-users@zsh.org Subject: Re: Complete certain external commands separately by path? Message-ID: <20170914064857.oaou3jhbbajx2vzf@tarpaulin.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) dana wrote on Tue, Sep 12, 2017 at 02:32:50 -0500: > # Put a `commands-bin2` tag ahead of the regular `commands` one > zstyle ':completion:*:-command-:*' tag-order 'commands:-bin2:favoured\ external\ command commands *' > zstyle ':completion:*:-command-:*:commands-bin2' ignored-patterns "^(${(kj<|>)commands[(R)/bin2/*]})" > zstyle ':completion:*:-command-:*:commands' ignored-patterns "(${(kj<|>)commands[(R)/bin2/*]})" > > If you can think of anything wrong with this method please let me know. > Otherwise it seems to work so far! It only affects command names that are completed at command position, i.e., it affects this: % but not any of these: % command % env X=Y % rsync -e