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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11588 invoked from network); 14 Nov 2020 19:22:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Nov 2020 19:22:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1605381721; b=D/7RBDgNgS5fw0moNBz840qSGTW2nUcmgjs2QHtr9gf94un1IwbIsGINEm+xuWha08/8jgmEL0 GGaPKdnob7D/GFOA9uVkPkTVFwegnjJlA5xaKrwYiEQ7HywAdAczlJYGQ7I1QU713z23mSgHtF lIJcLLwUR9m1fhRs+bCnxKB1GOW/61HAhXvDBvXXFGtuskimup9meS1sdBJ7nduPEn3YFg/i6D NU9qSK4sVa+NXuRuRZce2CrI4C7WFLCgk1V9FTIXIyj9rE8nG5Vrq3A2SNoxFfIksTP8yD807U kVQVT22b0Sc8iSvScZjm9DT/P9RzVN6zGrrmbBhANs/8ag==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f49.google.com) smtp.remote-ip=209.85.210.49; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1605381721; bh=XO9dGMU9ZeT9G2MtnRXUS9MKBbOeNIOFeIHZJelQB4s=; 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=kfd5YWHbq7kEWxpVY/VqJudeoSq6BrfC3/1exnzztiVAJlZXj45JTO2xSphit/luSQw7XfZ3Gb 479cnFSwpIwfnXI9k32VTzkPIoLKdXgXlxPVuitWjU8rAKbiVhVpXlIHskc79uC0uzPRr4AE+c 9Z0QME/tjZHAL/eJjTBUqqLLmKMstvA7MbD0w1Fc5Ce+i6IpMI2dcFGN6TCIDeG8IJ8/o+c4xu hld+kCxyKS+tcwibPX/m30hgKGvDERyy5KpHcMdvMOJVSND3E8Zq9XRRjNT1O2hS6b8UmbWZ6E BHc9rmKGIvmHF5HQH9v6zaYSL2AoVQlTm+Kt6I60TEf5iA==; 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=bsrwgnJ+RB+Em8fgfrY6QJ4Qb5DoSNUgd+4bVFPfc4I=; b=PY9zsFwfpY4tGixwALZoTxyhN3 6g6fMHVmCYENpfc2J/49SXCaQSGXQSs0u+SDmIGnP9cHzu6/0CKXQB3iqT4OH3Pc+i2/EK2AslTuQ ZwNhJ4UveE4cpXSgh7xm5lZEMw7mbWCvd/ZYFK7727FJgENpRV9a0WmV+pbWp77r92rvXd9+Kyqdf jqFyEoh7JE+G3OfmbuVOJj2rfK3nPR7xW6aOEUBzVgMU/N8qAyAoqKH1Lq+AFd6tegtDlIhEh/lBH eR4CJLyvm/eg4ebOhq3iVEKaUsZ3CKOzM2RSN5bCHqQc5lQvsbNF8FDCcTHfH7A9jOG9t77rDcu9N EHKv0Tlw==; Received: from authenticated user by zero.zsh.org with local id 1ke17U-000FeG-AV; Sat, 14 Nov 2020 19:21:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f49.google.com) smtp.remote-ip=209.85.210.49; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f49.google.com ([209.85.210.49]:44187) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ke16z-000FHz-Vo; Sat, 14 Nov 2020 19:21:27 +0000 Received: by mail-ot1-f49.google.com with SMTP id f16so12023919otl.11 for ; Sat, 14 Nov 2020 11:21:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bsrwgnJ+RB+Em8fgfrY6QJ4Qb5DoSNUgd+4bVFPfc4I=; b=YXdrSueGN8OR7tCGM9YnJZiB/muz6zQaTpkART0qoHqxFnJYChvz4R3KzGrWFtGadB xA5dT+V0kaP132TuLibND3LHU0iHg4hO0rXUc4NmaUoVGbKk+VGSom+Bw7jJNitBhn+D ZPU8xfp+GqMlgYI0aOcZcukXrhNf+IpjC5ZcZGdOZjhVVqdt8NtbvoY0CXyp4SXV6irX 6qtiLY/+PoF19CEXPoixgRueM4wa5nithjZ5b9c+q9e7jgX/nWiM74N6mVm8Y75sRmXU o95cwg0k1WbDbbDLx+qecxjm5ZfZSB7XoWqhUgXLhPey2tiVc+9iKZW4qTp31jeIj81D OvGg== 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=bsrwgnJ+RB+Em8fgfrY6QJ4Qb5DoSNUgd+4bVFPfc4I=; b=kTA7i+NvjTNNPIbu9qghAX6sZAak3GnGVsnlJujNKeu5lsfstXR3p3oS9flC9Ic+gp vqSBf7C5vU+PeMEBuVwnXS7wpRcQUZvAW1sbH4Ais7+38u+bUv6PGm6PBaYTHfL+lBFq X/wQU0JMGlfClXsgrg1uxMbVjozz9KjWlCy11oimgAy/h3NqfcviRbYMlvsXxfJ/tGIA b+cdLr2CGeR1wxhRP3XKEahIN8u1Eg3G3ymc98ZFuQ7DJOY14MaMibabA6hllU8hui3W SH+qrlmncT3DniBtoBCg1IbX+6JaWfi34UuKONMbFKQf0oonXJIjmiv1JihguHi46ZZ4 JbfQ== X-Gm-Message-State: AOAM533XTXlfbd/TDfKgzdN8Xg0dpQjjQl1uRVx+OZ6GGIQ3uTjXfeZD w30RPOYpurGhZgxhcLsoxDt2l/jYUBi3EAonBXxQ+w== X-Google-Smtp-Source: ABdhPJxkvl+2gBdUfXRsH5UtsVTO0an0gY1mzrVlccFyPwtz09s7o0L6AN04T6D462WvCkmx26+Kj+N8kMMpSTPwLzA= X-Received: by 2002:a9d:470c:: with SMTP id a12mr5899753otf.161.1605381684676; Sat, 14 Nov 2020 11:21:24 -0800 (PST) MIME-Version: 1.0 References: <20201113174124.cb440e381388179852e48c62@virgin.net> <20201113093443.afd8d11e641eedb409c2ee37@virgin.net> <20201114095651.bc9745dd9453d9011f16fdcb@gmail.com> In-Reply-To: <20201114095651.bc9745dd9453d9011f16fdcb@gmail.com> From: Bart Schaefer Date: Sat, 14 Nov 2020 11:21:13 -0800 Message-ID: Subject: Re: _pick_variant To: Thomas Lauer Cc: Thomas Lauer , Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26168 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 Sat, Nov 14, 2020 at 1:56 AM Thomas Lauer wrote: > > On Fri, 13 Nov 2020 14:26:34 -0800 Bart Schaefer > wrote: > > > > It is conceivably possible to rewrite compinit such that it does not > > install completions for commands not found in $path > > This is indeed what I was half expecting, given that zsh completion is > such a powerful and flexible beast. The trouble with this is that there are completion routines included with the distribution that are designed for autoloadable functions also included with the distribution. If compinit filters out completions for commands not found in $path (plus builtins), it will miss out the completions for those "standard" functions too. It's probably just as well to let compinit do its usual thing and then remove the completions you don't want, as discussed at https://zsh.org/users/26048