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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3756 invoked from network); 12 Feb 2023 21:54:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2023 21:54:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1676238881; b=d+brME1+H5fAmx7zVAyZh7HSOQnixBLmZiaVGzBqfJKKwWJ8pkANtuunJ0klLBtxpz735bD2g6 B/Gb07qr9kZ4EIbbWUzFqs2j6Hcin9SM+as02qjVcugYes/DvnLkYx11Vzc8d+vq5++LU6QBwW CF7X6NU7gJ9jFff+yDfFVJ0RWJVhNkyYzWU2ZUNRW/XcB+9dcyLMtAY1Zf7PMhenHgdE+3Xukf hHj2AbwdfHrgfj7Cwh+Mi3+Fge+SYZo+YZKraKIoTEyB1ceozEWZfN0wO6VqcEaj2sjyDLpvbS +WAuEGIL8RLW7Z1wVxATUMj7C8dpQxmLQysHduntqiYUwQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f46.google.com) smtp.remote-ip=209.85.208.46; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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-20210803; t=1676238881; bh=F8C56jG25HEYD45EwIRu0/ZmtWEvmocCgWdAe5O4u8I=; 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=Dg+Ei93+ltsBCaKd/B9ddpnNvCtu/n3O35jGVwYcJHdvYg/CQBZjTXptd1wdCseSZKdiBjjd46 zxSLASvPoTQUURwkCpEXk1cCEs9yfF5WY0INIKC5WSLpsiztOJl3sglnOSrviQrOSHC7l19cZw k5fnJKyrAQkYHbuKvjAr3vhxUdiZtTJEq/F4M8fQl4yAsdBVQuJENw/koqGM1uuQefSCyph/x2 98qrnTyEHhjeUnViThBqqsMDZdgH83JYpWoEvDyWpaXN/+nqdz/b8MeXTZProWuV7OsxXu3m8T PsJMwbH+Go/blv40kY7fTtQotieVfrUiJonqCLNePlrC7g==; 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: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=IJjrOhQvWzwK60Jmt+ERv1xHQNebg4O31YNQydgdXWA=; b=N4KHyLhiQnMpTWZHYMxu6WvgqC LsLFxAjWFtsqJP6pPocsFupF+OtRwDKxw74zBr6nQJYPzY6xqi5LyyYN4IJYMzcUKT/qomuFGC7+q H9R5LTTsoVDHQ1ldB2LxRYBl2I/8vQ7dsQ+4O7hEf6nue5lOVoH6Qhq+QkEaeIlhtebDYe26zqI84 DhiJRUIpaHluLTAr8D651XzJkVil14tUnCmf1K4Cdhj/4+qCk9rLOcluS9jALvwsiLLIJAuLQTUY/ VppP/4RH6f+NLaW1TLci62HsK5oTZe0FywJ4G4YHlHLRPBRFyVY64nFbiOLj341EPzq3iskTPwOBh piB5HVgg==; Received: by zero.zsh.org with local id 1pRKIy-0006Zk-BR; Sun, 12 Feb 2023 21:54:40 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f46.google.com) smtp.remote-ip=209.85.208.46; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f46.google.com ([209.85.208.46]:47077) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pRKI9-0005qz-IO; Sun, 12 Feb 2023 21:53:49 +0000 Received: by mail-ed1-f46.google.com with SMTP id e19so71edz.13 for ; Sun, 12 Feb 2023 13:53:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IJjrOhQvWzwK60Jmt+ERv1xHQNebg4O31YNQydgdXWA=; b=umG1ofqWjHPxQldcqbOWOJFKWFPGtLXnadhdf1k7HL7LPW3RK5whVttwhYXb1zdm16 wc4X7ODfLWGjvfugb2uITJNvux12swWUs7rYaOBhHJOJGbcvSiOl/LUgTvi7T/dbng2o zhfzKSdzrwTsdOG/Z1YNUZ/P1xHTGTfQl1l0/UA05Jjbmqq8fPZ3loBRISPwpDGY6E39 uG8oKznLHhr13fhvDV0EZhHdMrc0Wgn/xFZTjFaYYo7Awsv45LTh3cBXM4sSBcS9QsNK hhLPvMTTZpG/pe9WchmdOObV5TOBNb6RvaJ9e62Ybv6Nx2B+0i3DUibQFZhnv69NQznh MD8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IJjrOhQvWzwK60Jmt+ERv1xHQNebg4O31YNQydgdXWA=; b=JA+bkxlTBUlBVSlnpVWKlmZp7FR/cOxCc24OTtn7GPo3QD4cp1Rx7iAlnEO1RNROQk mi1cRds5UOhJlkKnAU5WT5BUqRNWu6s0gnnt7zvh57hANsSMDPPZMigoa+yyKH3g7yir F4PsuN/3HqLMpNf0ywY7jGa6PZcPH9S5SsDz1G1jDt15rNCJOQuN0Rucd3thOeZ20nfJ WSFJ/1Tm3iwSG9GHc4KIRyBosrdqprbKCC0YFLQ70T6/wbjaxqjwhXDb3yFyta64fLNu TL3SWjNfZQIBiz7rU0CBM/NFAGy44dXPjimfj83BSkl5mLFxGadFLzFZFlyq9wY7ZGBY qEjA== X-Gm-Message-State: AO0yUKUOHcri9jjtTmyZJcFhaktlKNYemAaBNV6pNBJtzOdBZNZpIlMb 2tCnT7OiV8T9yy41tymTmnOqN10eW7t8WX0ZpKc0ag== X-Google-Smtp-Source: AK7set8ZVAnGi0+V36x6v2me1VCYfxtJcJcmHSMwST+3NHTyYcwIxNC7n8jOR7Z4HdX032vBCTDUcN9EjhZyIIuT/9Y= X-Received: by 2002:a50:c308:0:b0:4ab:4dc7:574b with SMTP id a8-20020a50c308000000b004ab4dc7574bmr2814993edb.3.1676238797014; Sun, 12 Feb 2023 13:53:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sun, 12 Feb 2023 13:53:05 -0800 Message-ID: Subject: Re: completion functions not loaded To: Roman Perepelitsa Cc: Pier Paolo Grassi , Zsh-Users List Content-Type: text/plain; charset="UTF-8" X-Seq: 28933 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 Sun, Feb 12, 2023 at 1:08 PM Roman Perepelitsa wrote: > > On Sun, Feb 12, 2023 at 9:58 PM Pier Paolo Grassi wrote: > > > > alias systemctl='sudo SYSTEMD_PAGER= systemctl' > > If you replace the alias with a function, it'll complete nicely. sudo completion is supposed to know how to look ahead. As written above, the completion context is tags in context :completion::complete:SYSTEMD_PAGER=:: use-compctl (_default) globbed-files (_files _default) tags in context :completion::complete:sudo:: argument-rest (_arguments _sudo) The alias would work if it were instead alias systemctl='SYSTEMD_PAGER= sudo systemctl' Maybe this indicates need for a fix to _sudo