From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11302 invoked from network); 12 Nov 2020 19:18:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Nov 2020 19:18:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605208705; b=GYg3YGmHRhL0RSXzT2pBEcCuUl5kSQa9A+5gqKuIolsMVgiV9r6UbnXvayxJa2LQDAe+hAHget UCY3RX6GQAu6K041ahmOM3hbarWNKKb+9f2w3q5ZELX6eAqI7W/n1f0RU3UlGi4F/0PxlRstj6 fSIzZqx4ZtQGtLkQuXKmJ6kzrkmGqSUmUXWii7mVvCPL1yugdGGTPSbc7wy8WfbLRAB9QhgWEB 7JMdc5ZoJgBV53+KozXnfUijiBtbj+D4sjVgUS5GCgelgyC7PjsWMRzmezh6htpZj2Y2PIyg/o DmrgqCrV9UXXw/RqWBCh7wRotSnBLtTWQdRxn4JLpXMjxw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f41.google.com) smtp.remote-ip=209.85.166.41; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1605208705; bh=44dbaKi94OtKhVzMN+PDdbpHNCtyznXm6QNyf5NI9WY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=ke0XeVHxuS3ZJd4Y086u70U20OWRibA+aoceWHLyDKAKsD0g1TR8WBPwGt9v0UL5JxoiTbC92X nZi5HiR+9eTFSxAxbPpJr4Snfzsb0XRWMBalG4HicUb+1FIKH+rdKkk7QdD+yLe/8+kL4jpKTn EyuJcA1j7C4DmfMUe/RPwaWil9CyD66wTsL8uGYDWlNi+CP/2odqx5VRgJKDQoSFVNzksu/nks KZW0GEdqUddy9C5VAfYeHkepwqz2oa/6yrIRBeCdnRuJXF8aWF3iADfPnPXtBGcV4l266kiQnu 38JZKAYAzpPWqv49cs0+FPs8CD/BwNTJRhx5NFf44Uge/w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=44dbaKi94OtKhVzMN+PDdbpHNCtyznXm6QNyf5NI9WY=; b=iJsPYu4EyzhSsMUHDJgQN6yYcv oXkruHSRhJYRTm1BYgGCU+X1ajDI79nOnvIxDaMOIG2J+HihUQOsBfMcTNd3QhethkpKt9Is798mw eYS02dYot1Zr/rM/xBJzYLGW6hNQ7I1PSqYqlBCt5IEj0V0Nrpp0cYj5tnlUTz8qlnmyBLA3EfGh+ BBec36lDdMT3V0KCIZDL+R1VEVps75nMTrmAwRzadWV87f5uK/XMdLxfC/SBkl1CspT0pBmTCJcX6 rTu55MSofbwREs9QPa4jB0ZwqHb0nvVKIuvEhVatKn0qxkGhyIwA35LF8Jz7Z8147p6aSOr3XHxtV roHO3NSw==; Received: from authenticated user by zero.zsh.org with local id 1kdI6y-000PJO-My; Thu, 12 Nov 2020 19:18:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f41.google.com) smtp.remote-ip=209.85.166.41; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f41.google.com ([209.85.166.41]:39479) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kdI6c-000Own-N7; Thu, 12 Nov 2020 19:18:03 +0000 Received: by mail-io1-f41.google.com with SMTP id p7so7232198ioo.6 for ; Thu, 12 Nov 2020 11:18:02 -0800 (PST) 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=44dbaKi94OtKhVzMN+PDdbpHNCtyznXm6QNyf5NI9WY=; b=V19UA4SKgV/+qWYEKmDS//qJqyu6ZNkoogOkl9qoPOpMUFVZYwnRkMUACNbhQB8awh gSHVVFktAYB+NxEGWu6v+fa86H/g19JA8rcIEpSOMUzrACbVdik5ao2PRCqT4YFqjbtU WBqT1/LOGwvkucF+NobvsSykdmcFlKa/cz07pep4yVYhYqxsbDRFv9ANdkV3XO70aKAH +HM03PZJyPMvpM+92B4kQ39Bng5A+Iiys5SF9XB9VKDd0eHXzSxLFHR2qnyIjkS2CkQ5 SLn05zFhfruo9TCPGbbUSV9fg4xe/CkdkEtEop4PX0/5+43Vna3XSM7+HUJBTB8UCrWV UxUw== 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=44dbaKi94OtKhVzMN+PDdbpHNCtyznXm6QNyf5NI9WY=; b=MOSvuPipLG8/dxeJcqEhL7KFQ0hS1kCnqMXCzzWn3kkB9MeoWpCqOM7LpxNeIjvQ/S imC15ArFh3YRJ1coaDJXR6DvRaxhBRydtwD89UM7A0+feFtKiksLC9OS8lRSo5zSH6qe gUobOFnMWqbodaXagnM5wO9CoG3t7AjCtKww/h73EI48pl+Jf3xnkE3hYjqpHoxlJkKi Zke/Tdt3lmuGM62QfOzoHNfelsOOWb04LjnqiMkLQr1uyPoQ4sWGcPAXlzp7w8V3v0Dj WORnEk6DLdQ0B5W0N4svSYpedzluNakBKRjJgPxYfjPnPSApT4Vm+KLT9iFBEjAXI6rK zWqA== X-Gm-Message-State: AOAM5306PPo218FoLGNWM6oXByLT6hHnWjcxF25MIRxDcBKSxoqrItac Xru0PN3PAZKBL5t3GgABNg7zT8bzAzhfmWXvUcM= X-Google-Smtp-Source: ABdhPJy7sRrP8GE41X1h+5lmxHcRa+34lpd0Iws7tt941/+a4a57Fu0Jml47jXBmuhuXKdBy3kJQcOok/YTgYgmGbno= X-Received: by 2002:a02:2a02:: with SMTP id w2mr977618jaw.83.1605208681450; Thu, 12 Nov 2020 11:18:01 -0800 (PST) MIME-Version: 1.0 References: <20201113174124.cb440e381388179852e48c62@virgin.net> In-Reply-To: From: Roman Perepelitsa Date: Thu, 12 Nov 2020 20:17:49 +0100 Message-ID: Subject: Re: _pick_variant To: Ray Andrews Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26156 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On Thu, Nov 12, 2020 at 8:08 PM Ray Andrews wrote: > > On 2020-11-12 10:40 a.m., Roman Perepelitsa wrote: > > and discovered the hard way that zsh supplies a completion function > > for a utility of the same name > > That's why my last question was how to turn all that kind of thing off. Sounds like an instance of XY problem. If the problem you are having is caused by builtin completion functions clashing with your own private scripts, it doesn't necessarily follow that the best solution is to disable programmable completions. FWIW, I know how to disable smart completions for all my scripts (because they are all in ~/bin, so it's easy) and all my functions (because they are in ~/functions) with a few lines of zsh but I'm still wondering what other people do. Roman.