From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5471 invoked by alias); 2 Jul 2017 21:37:23 -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: 22761 Received: (qmail 18083 invoked from network); 2 Jul 2017 21:37:23 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f52.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.218.52):SA:0(0.5/5.0):. Processed in 2.510803 secs); 02 Jul 2017 21:37:23 -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=0.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE, 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: filipe.silva@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.218.52 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mKhQhMlacfxysR17yRAVuSrvEgfmv/tUyVWOrlmu4IU=; b=ovuDdfnHUfHFl9nuMRNnDUiOncTYzKSYFFIRpAhKJdrZD+pbhyfKlWaXxrOq2Q7Ehp U1wXIgrppjdBJqGwX4zMVfnMCObRr20xaO3GdHWVDi3Y1iXpfmxr5eStjICasSzp5e6M OKfEbRopCiHldy4J4CPQoTX0vkll+pV+UhiXp5qmwWLhW/j0zdVip2gsGDx1F9FXb5lQ Pbw4ota8nlbH4EdnnPa6RKsW0saepI4y0vtYndb1MmRUUKPCSZ9nAXMRg/doIuvte8HY bDl1WQo+6thxmTT6Vjzzc/AXHIjjuvaazK+aKlnSQkrQxZzO80ofY94ZlDxW3zcGwae0 2Pwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mKhQhMlacfxysR17yRAVuSrvEgfmv/tUyVWOrlmu4IU=; b=Hfif9/dgKoJK2C/za5hV8MHB/tFwiv5L1rY9TVnjOmFH/z00vMCliJJYzdsVVXluqL c8ExpQjVv5cSDIdsELCe7q1qhawdI9ktE3YwFfvJ8tlqqiKkylGYvHqYTqN7xjlLk4rx Bav9JdpfYgS/n8x7nz0lC7Dk8w5bIA+hZ9W32lzX/KKpC/483SMcqjXKJFLuC2IZool6 DQytxs3Mo0FPvl8ZK8vN1XXO/UqBJnrMUIVjUdjPyMxPEccO28ftrNhb2yQmzrQnJb5M ZUsNpXlzFfyWXuS8sHZzjQ+IY5Ek3A7Am4sK2E8pkoT5gKt7u2x5iiRSDmZIr7LkqHkQ wqkQ== X-Gm-Message-State: AKS2vOwjaSyeed2kwuxnEM2xVjYlTIqDtyI6TP5QL13nCdNBMYij48QF nICVfWhgP8HNf6Etn1nQn8X4E3OHbA== X-Received: by 10.202.224.70 with SMTP id x67mr16445809oig.75.1499031434746; Sun, 02 Jul 2017 14:37:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170702182042.2c129fde@ntlworld.com> References: <20170702182042.2c129fde@ntlworld.com> From: Filipe Silva Date: Sun, 2 Jul 2017 18:37:14 -0300 Message-ID: Subject: Re: make zstyle ignore both _* and __* commands To: Peter Stephenson Cc: Zsh Users Content-Type: multipart/alternative; boundary="001a113d38a02ce13605535c74a2" --001a113d38a02ce13605535c74a2 Content-Type: text/plain; charset="UTF-8" omg, you are absolutely right. It should do already this because of the regex. I'm so ashamed of myself. All right, I did found a case where this does not work. if I type d_[tab] it shows this: http://imgur.com/ZSBZHvp (notice the __fast_highlight...) here's my full zsh config: https://github.com/ninrod/dotfiles/tree/master/zsh here's the completion relevant part: https://github.com/ninrod/dotfiles/blob/master/zsh/completions.zsh again, here it is for completeness autoload -Uz compinit && compinit -u zstyle ':completion:*' menu select zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' matcher-list '' \ 'm:{a-z\-}={A-Z\_}' \ 'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-z\-}={A-Z\_}' \ 'r:[[:ascii:]]||[[:ascii:]]=** r:|=* m:{a-z\-}={A-Z\_}' zstyle ':completion:*:functions' ignored-patterns '_*' cheers, Filipe On Sun, Jul 2, 2017 at 2:20 PM, Peter Stephenson < p.w.stephenson@ntlworld.com> wrote: > On Fri, 30 Jun 2017 18:39:18 -0300 > Filipe Silva wrote: > > I have this line in my config, that tells zsh to ignore `_*` commands on > > completions: > > > > zstyle ':completion:*:functions' ignored-patterns '_*' > > > > It works well. But I'd like to tell zsh to also ignore `__*' commands > > > > (double undescores) > > > > Is there a way to do that? > > It should already do that, for reasons I think ought to be > self-explanatory (famous last words, I know). Have you found some case > where it doesn't? > > pws > --001a113d38a02ce13605535c74a2--