From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20043 invoked by alias); 12 Sep 2017 02:09:32 -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: 22896 Received: (qmail 25387 invoked by uid 1010); 12 Sep 2017 02:09:32 -0000 X-Qmail-Scanner-Diagnostics: from mail-it0-f41.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.214.41):SA:0(-1.4/5.0):. Processed in 2.551114 secs); 12 Sep 2017 02:09:32 -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.4 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM, SPF_PASS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=CgGo9dcm9qEwOPWyFTyx7uKsC55804DJ8NlTKpCPEiM=; b=Tfs7UDOOtGpSSDdF4BmTd4JLx7qIUwptGuge2rF5/4z1WUPlRmpiWL+Q8Eii/wuZVg gt3QzZM+ltl4mDtblgqlk1z+T8KI2hfeaqtjycIM5XT+akraBKrXxtpUEZ7q4p6PJAVr 1zz2YyBK2ywgwWHWwKRzeky/LsE56jm/vXiFdre0Xz2eT13RZu5STMpJCaEuvqpUOV2f 0Hn43QF4j5RtnYyjPjtV8VqoYSyNAmKc3+13RooweOKf0so4ULNWlDLhZLkrf7bfkJc6 GfukFNuIJocpP5DH8pxTa6FKQttQzzI0pJMlMDtnTvWM/7AVtLt3tioIDALg3weu7Cix gYPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CgGo9dcm9qEwOPWyFTyx7uKsC55804DJ8NlTKpCPEiM=; b=jNdxYt/z6QIkXyjw241XOfCdCxwxh2CoIU7ezx4Husye/3Rk9+xCZPcBoalAT9LRyR fXSbZ+oZwrQmubPwWF8J85bp3lSp1A4nYxYcmyf8Qo6lJtpab82HWAeLcGCapBTjme0X OSxeWX6jYv+Hd7Ff3shrtMaDLw9h/fcyHdlmcy3XAaFC6wxcy2agWpdzZqK+GKWV2bgs MenWRwV/Uj5RyIcqLNoA2idH9VEkyq/1J71T8tFG9hR1ILlVjZTnE3Ybgv2s0ORKaUw2 taknnGmYn+mH8LdQJu1efVlI3rKz1pYEcsmvX8OBKqUe73OI3dZznssmj8USMBBx/cgs 3K+Q== X-Gm-Message-State: AHPjjUgpyNoNVPqLlNPNBxuoXXyDU8PjYdEaaRblah/85WVpY0O4wkFt AJBxZTR/VvHVZNVfQIeamAshPl8sxVT95kFZZg== X-Google-Smtp-Source: AOwi7QD2QBBsfznVkD6KQ5eVhma4wf0kHiQELIAPuYX+YTQSMkyi1sIFEy/XJvKZvn4UnnBjP7NOz3mpQTWh+rpqO1A= X-Received: by 10.36.185.70 with SMTP id k6mr16439904iti.102.1505182165364; Mon, 11 Sep 2017 19:09:25 -0700 (PDT) MIME-Version: 1.0 X-Originating-IP: [208.123.231.44] From: dana Date: Mon, 11 Sep 2017 21:08:44 -0500 Message-ID: Subject: Complete certain external commands separately by path? To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="94eb2c0ad18a4a0cd70558f488ec" --94eb2c0ad18a4a0cd70558f488ec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey again, I have a problem that i hope can be solved with `zstyle` somehow: I want to make it so that when i complete external commands, zsh gives me the possibilities from one particular directory ahead of (and ideally separate from) all the others. Seems like the most reasonable way to do that might be to create some kind of sub-group that i can put up top with `zstyle ... group-order` or whatever? Here's a contrived illustration of what i mean: Given a PATH like this: % print $PATH /bin1:/bin2 And executables spread across that PATH like this: % ls /bin1 /bin2 /bin1: foo1 foo2 /bin2: foo3 foo4 My current completion behaviour looks like this: % foo completing external command: foo1 foo2 foo3 foo4 What i *want* is to pull the /bin2 possibilities out into their own group so i can have them completed first =E2=80=94 so i'd have something like thi= s: % foo completing favoured external command: foo3 foo4 completing external command: foo1 foo2 Is there an easy way to do this? Cheers! dana --94eb2c0ad18a4a0cd70558f488ec--