From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 2ec98907 for ; Sun, 9 Feb 2020 16:53:03 +0000 (UTC) Received: (qmail 7691 invoked by alias); 9 Feb 2020 16:52:55 -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: List-Unsubscribe: X-Seq: 24674 Received: (qmail 16762 invoked by uid 1010); 9 Feb 2020 16:52:55 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f180.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25718. spamassassin: 3.4.2. Clear:RC:0(209.85.208.180):SA:0(-2.0/5.0):. Processed in 1.424895 secs); 09 Feb 2020 16:52:55 -0000 X-Envelope-From: butirsky@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.208.180 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=0mxjthvhfCs5apID6GGHlaUBMnlwZCG4lqFMN3vkyps=; b=pQ0cbjA+hLlm+uuWmVUTyVm8M2VxHdZqSb6q8S6F2ZQghpm6m6nFhf49NbfqEAoqqI /kwXmlfyMNhVyNWQabIwRN6tTxSbp7bXsYQRht08VCucp2I9HV+3PiXAiCFZsftBlr8/ /bJeZwrLLsHxWUuRWozeP8sWFoB7jEpjdUQQrOdDiNgICeRXcHS3/73Z8agKbkEHheCU q+gIULNf6qsVMt+V9cXu0Z6EZi5txTh04LCv08mG2khawIONPpbSKr3CjABhjEywpWA+ B39waS3Mk9zHo4SFLdABUt48RQ/HxQDWt3qL4ni/SlhovwhKHaMy3TkilsrN6XtsSD3N 8fKg== X-Gm-Message-State: APjAAAUmaaUrWtdWNADBY+u5Szgs81xHyKXRSCzTIL5cR/vsPzbGPuMi vozmf8dOrbzcSj3w22fqr+XCiZoA X-Google-Smtp-Source: APXvYqw9l/577f3UenG8UoW6RlqbuHEimPiaEOW0j8dc0gPLu22v/4NQe5O7dKOna6YvyrqbJscu8g== X-Received: by 2002:a2e:9e03:: with SMTP id e3mr5555324ljk.186.1581267140127; Sun, 09 Feb 2020 08:52:20 -0800 (PST) To: Zsh Users From: Andrey Butirsky Subject: sudo autocompletion Message-ID: <912d22db-8a8f-90f2-6738-f9f395994dcb@gmail.com> Date: Sun, 9 Feb 2020 19:52:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Thunderbird/73.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Hi, what is the most "canonical" way to get sudo autocompleted for casual user? In bash, it works out of the box. Shouldn't we provide the same? I found many hacks about it and maybe since I'm new user they all looks pretty ugly. So I decided to ask here than trying to reinvent the wheel.. Thanks.