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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 de474080 for ; Sun, 29 Sep 2019 13:10:11 +0000 (UTC) Received: (qmail 1460 invoked by alias); 29 Sep 2019 13:10:02 -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: 24307 Received: (qmail 12221 invoked by uid 1010); 29 Sep 2019 13:10:02 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25580. spamassassin: 3.4.2. Clear:RC:0(209.85.166.50):SA:0(-2.0/5.0):. Processed in 3.887801 secs); 29 Sep 2019 13:10:02 -0000 X-Envelope-From: mikachu@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.166.50 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=T2idiWQIrchUbJV7j5U6xgAb9MmY9bnRvS03SiSCvMg=; b=ev+XrhvyMZAQxP73029vPIjEM5pF/F0OZDzXWLOX0MbXeSwpwVxEdLZsyzOfZLI82k 8DpuGNPDvsfQvUdGmSBS8TpZAUyb8vtfSN+zc1VcItqGP/RTe5O6OHbodQsWjskRkUtV AIygGlxR54lfqh4gx7AWJvhe+Uhe7+klc2+C52I27mkXfILXhdL3IL/JEib6XScE1tha dz2O55SBHR7h7HLO3pRWk/gXw+iVpi2+Li4NLfqSvDAa+zD9g9ZIo3Fj6LsO8nAuTwGa X8mNvEQb5Wlki0aypqKLBO3BMxyelNCRbbhkwxra6iQrR+xEGq//9pItN+9KOrpQPEU4 w5pw== 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=T2idiWQIrchUbJV7j5U6xgAb9MmY9bnRvS03SiSCvMg=; b=S8VlTlNONPXgh9y8p7s2WnHTzDPE/mwWaQmFnv80GmuWaia37S4dzLvXu5RFz+Nv88 DzaL1jiLlR04BM2wegaKwwMacVrAErakENgn316EXKAy1py1zmj9KZ80eXMJh2zW/dzg U7TGDgrQ4exqxn2jkhk5xJWNbK3T5ybYhG58dslo5OnCrvpLPXfQpU8dtXaOTkQK5+Wy UHA6a7F+dyLHx10wuzF/DdrL15cW0O1Ebymq7T587qylUK0C1V0R8ci/2yOXs3xv+5pp t55xmMJFvBybr1DQQXVGsifwcwKyVp3G32mkfgyvfnOM/Xn6lruF5pdvTZxtt5UO4hPv 2JJg== X-Gm-Message-State: APjAAAUmIaJxbHd8MTRawmaZR+HLJlBQqLgpdpbD7A7CD8Jf51RzGQOF m0A2WGBL/AQooAjFrvc1t5PGMJelLDqSqKWsJrM= X-Google-Smtp-Source: APXvYqw6Xpqh7zJdWty5ostiU3h8tnW5LJsp1634liubttLpxBibwno3jcEUz1AKW5buUvhv5BAQ++pnE68208Lbi5M= X-Received: by 2002:a02:8644:: with SMTP id e62mr4548424jai.115.1569762564988; Sun, 29 Sep 2019 06:09:24 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <8ef96620-e762-d52c-207f-c3ac5620879f@eastlink.ca> References: <306325bb-395d-a16b-a771-0786c23cb46e@eastlink.ca> <8ef96620-e762-d52c-207f-c3ac5620879f@eastlink.ca> From: Mikael Magnusson Date: Sun, 29 Sep 2019 15:09:24 +0200 Message-ID: Subject: Re: completion is over thinking things. To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" On 9/28/19, Ray Andrews wrote: > On 2019-09-28 10:13 a.m., Roman Perepelitsa wrote: >> On Sat, Sep 28, 2019 at 7:06 PM Ray Andrews >> wrote: >>> $ ls inst.deb >>> inst.deb >>> >>> $ apt-get install inst. [TAB] >>> Completing package >>> libapt-inst2.0 >>> libmono-system-configuration-install4.0-cil >>> libmono-system-runtime-durableinstancing4.0-cil >>> >>> How can I get completion to stop looking and finding files God knows >>> where and just expand filenames in the current directory? >> This doesn't answer your question but `apt-get install inst.deb` won't >> install ./inst.deb. Instead, it'll install all packages that partially >> match regex `inst.deb`. > Yeah thanks, I remembered that just after posting. But my issue > remains, I almost always want completion to stop trying to be clever > and just give me local file completions. > > and: > > Installing packages from local .deb files is not the task for apt-get. > You should use `dpkg -i` instead. > > Actually I know, but I just wanted to demonstrate the issue with completion > and that showed the issue. Claiming that completion not completing invalid arguments for your command is an "issue" seems pretty far fetched to me. If you always want to complete files, don't run compinit in your startup files. -- Mikael Magnusson