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 22919 invoked from network); 15 Oct 2021 19:14:28 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Oct 2021 19:14:28 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1634325268; b=nMisvhxOXvESfNbN6tsCmh3RitD2z1g6ZvsoeFj+pqwgXp9FgUv3hUOP1HDTmq9Gg2pQuOjAhQ SN5u9Z0/yEMBUJGAMGMvbSSEq2vjXCYnA1dOEQ2Ci1oF/O/dpcPrZ153AOGANcvAOGVbYbeu78 Pb0i4qQgPq+2S4Wv/ishkC8SI75bhfcHw7skfhNj2FwnsptSG2CtsCDMFeDEnmZFLg5zVon2Uj fjw2C5z7JkdGooB2F+QQcvBWrQJszIgK0D4LYc2YL60W11LMRQJ2Y468Hb/atRw0WnFVZ7jm5A vbRgdussxzjcrN+gTFrSU8YoJS0doyEsmWIS/j4M1VkWpA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-qt1-f174.google.com) smtp.remote-ip=209.85.160.174; dkim=pass header.d=gmail.com header.s=20210112 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-20210803; t=1634325268; bh=Pb+OQahYKo+vxxN1UncsRFKzZnrtGND7cGjwnkenWjo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=d2III+1srVZw3J+GWdpw3ml+dI29dsvalUMqR+Vh6CmjsH3EmJf/p/Z9RqOlKq2iWUuwF2xswR bGEH94s6gmXztsYFGysfZqUAwTdLIoACp/+9lIPdeEOAfZ8Gy9wav4QQ+50XYsCPhjaz/xTq9E 6SkBh+SLOGpEyfXp2ESVBA79Qdur4X9oNs13sQ2E7T/GYrQy2ki+7QOKkSmtB0N+BXS/OZDqg2 86TjsI4BEW3k6HjNkrIyZFPA+yqPLs+blbwj33YhNICVkE65bkFehhmELkpUOxdZZzwfYbU5je RrKup6uMavUlKWvhNgivm646FQb3YAa1fMXCsPxGM7rfkw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=W3+0PlBr+eHCAYVLQyxRByOdNtlfBtltS+ojZD8UDm0=; b=bGzYfXqN6j6ogVmlDK9/aIadyd C9aUOPRijc0v5771c7v4UYUjustDlQ7023cnPPy+srWpBXVJ6BEBdCKc9AfyxVJU0lAh1ylvKt8Ua 2qbaYRtembYRQaK4i47dx/PMj/Wj7irtbV3cPdgJigVJ/JwObR/uOJoPimmYp1mV3mJbH346EHpul wh5c8O5VWfiFbMnuPC3QCpQMTd2EjNeWzNnx6UlrwvRo5IV4yp6koj73Np90p6th/CCElevKjIaRV +Vcun/Pao8Lt9gx4l6j8UoxKAfSzhjKc5ueSLR2mHIVKWeykAPDLPyiTj8xBRW4htATUT15jrMg6Z Stc3g+Bw==; Received: from authenticated user by zero.zsh.org with local id 1mbSey-000KIf-9I; Fri, 15 Oct 2021 19:14:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-qt1-f174.google.com) smtp.remote-ip=209.85.160.174; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-qt1-f174.google.com ([209.85.160.174]:36652) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mbSeC-000Jbk-3n; Fri, 15 Oct 2021 19:13:40 +0000 Received: by mail-qt1-f174.google.com with SMTP id b12so9744000qtq.3 for ; Fri, 15 Oct 2021 12:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=W3+0PlBr+eHCAYVLQyxRByOdNtlfBtltS+ojZD8UDm0=; b=ZMTHkByOtYy5oXoTFaSBK9BWc9WZjfrNl+5V09JAaxLNQe3YSUek2fUQF38LJrNSSV l5pX6k3jilHkQT0+CsSyRexyNQPm1Cugo2Pdhg4guVAItJXb5fVWhhf+FdkJrGz3kdV5 YomsBcPcQn/oU7EuPl9awOecriArjXuh3JkqFxZ19c/nMc0nvmKS/ml12p1uKOSoBlAR 1zfXByDZ7YKAExrgfPJlv2CVZ0KvVkBcfvfYhSD+bMm/LiNj6UYHpEl82wjfUJd1ZRT1 sKvP4kq7wzmfiOboTCWJuHma9BHuxgsy7O7zNIyw8KMTYb/z+7nTQc409yLQOoun8mn2 2bZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=W3+0PlBr+eHCAYVLQyxRByOdNtlfBtltS+ojZD8UDm0=; b=SugkQBpt3auF3RY6nXccbicev5QI5Ao1EqBWqGHVpDBd3qoq2+EyLumKS6VrDyJtK2 lxAmUaqNhGTbSG8JGGu1+KWHYLL6lG2FrOlpqgL4BapxpgUSpUPWStWE8/CYm6zobaAD 4ULtyZeOMiVF2Nz6W6J0U3sr+ALxg9P3BmYHAuZnR5eCRkfwaOAyTEVYep8M4faUEbkJ hUzWJ9r/Wd+fbapLPCTPIjG3mBmUSMWZUzXWjMrsSNoEHGrSKyiU0z+sQJUTNVxT/yr3 ItPQzfVWMXCAJYLrY+QVOgwYomhRCdeKjH+RNJvJkjR6e54MccyPAqCjaaoayPYshLGT SsuQ== X-Gm-Message-State: AOAM533yC0LwuR5Y7c6jImN0Qqj3ivkyA/sTaaWuTzcVVyNcSsrKIHsO NbGoGLPSpzm46ox3+GeKW1FooM9zDESBEdN9fTA= X-Google-Smtp-Source: ABdhPJyaeFn3NHwf+Z0eQ4J55BqRE5H/koFpH8QHRif2W3lE965cdBYD5J+r3H74+tbVfM0SlvptgE3YDolmdzV3RYk= X-Received: by 2002:a05:622a:1804:: with SMTP id t4mr15901607qtc.251.1634325217937; Fri, 15 Oct 2021 12:13:37 -0700 (PDT) MIME-Version: 1.0 References: <20211015184034.GA7752@gmx.de> <20211015185603.GA8362@gmx.de> In-Reply-To: <20211015185603.GA8362@gmx.de> From: Roman Perepelitsa Date: Fri, 15 Oct 2021 21:13:26 +0200 Message-ID: Subject: Re: Where do these completions come from? To: dominik.vogt@gmx.de, Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27242 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: On Fri, Oct 15, 2021 at 8:59 PM Dominik Vogt wrote: > > On Fri, Oct 15, 2021 at 08:46:27PM +0200, Roman Perepelitsa wrote: > > On Fri, Oct 15, 2021 at 8:43 PM Dominik Vogt wrote: > > > > > > I accidentally hit "d" and a list of things got displayed > > > (menu completion), including > > > > > > dis_aliases > > > dis_builtins > > > dis_functions > > > dis_functions_source > > > dis_galiases > > > dis_patchars > > > > These are parameters. They come from the zsh/parameter module. See > > `man zshmodules`. > > Okay, understood. But why is it useful to expand hashtable names > in command position? I don't think it's useful. You can disable it: zstyle ':completion:*:complete:-command-:*:*' tag-order \ 'commands functions' - I don't know why the default is what it is. I don't expect zsh defaults to make sense. Why is interactive_comments disabled in interactive shells? Why does prompt show hostname but not the current directory? It's all for historical reasons, I guess. I do appreciate that my shell doesn't break when I upgrade to a newer version of zsh, so backward compatibility is a valid justification for all this. Roman.