From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 005142A1FD for ; Mon, 4 Nov 2024 18:00:20 +0100 (CET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1730739620; b=aYxZtrBtWQb1yf+ScHqFE5boJBT/SN8xtlMq7lel+pHj3eyn6A+4WKMXGkeDjBlqih000tOq+2 lUftWEzGIKxyK0v1oHkgCO4wgug7FCsHdHw86hduxooNEEhLnmu/GWGQKLp24Jqgifdue31fls ql2DF3xzKx2rmfcHNRCCcE8azADAqrpWHC0PcuXIN8rMmBKpz9MEBw6Yh3APC7NpJ8f1wWM2mp GiVUu8LVWRGlRx4mptcxT/TWUhUG9NzofJrkSzDBLF1cpq+kJ8pWvAz55GsAjsHZ9TbVPxcBoH WIvUdjumWWku6FyCOIFjPAa9a/LA+v7ZixuSrWL/BQ7UCQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq4-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.41; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1730739620; bh=6vtDeKiPZi9d2hQU68GVGBcLLQInY15+kqKpVXexd5Y=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=kiardpMpJOw2+CeCtZFMLXCfhyIWd4eZ2nErmwt0b0jmN/5z/D2KXzF8VK507oyZvXmpKF8sQ+ FjMeVeDZNh9rUqp4ewjqIZG6Li2ta0wm1yFwF/Qpg4T518hHvy/kNvHKmM5rdaC9fFXlw9Jdq3 sAHXu+57hHfJIGlAJK/vp34Xx4xNXGyMCQy7bhYuiq/HEUXxKIiBtzjRocH1XZdVTW3oLXy8Mm 1UrW8TsZWt4m/5b/+r00Vu4JAHDdyvqOa42odQfzgewn12kysHzroR6ltGWF6ZIWWLbCgt2jsW rc5t7O6+/XYi3aUlJMaY6PGEyZP//H1wFhGkQyQZ+vDsPA==; 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-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Yca9iZLYdtR1yZN60mU7B0a+GkQdgwbxuPrSkVNFd6Q=; b=NpmMbzRQQctYr7OQ7cG24WB7XT eRxnc/x9GdJF7KpBLzN6WQ8fdkmRosxc/LwmCfeZsfyzrjjYSaQULds1dWQEDaMxQNY7H7vsEptvL AjCqIxdEo3mE1ra73efrria2q8jxOGbfl9qseo/2OlQOtdpq1w/zUlv277tXGbZ8slS8g7mkYFdFz +OlV3lMHBi04ULZ2fHAZXoe6W1pAc6ztIKjdNa+8c1OZE0S/tkk/WnEL7e7Ec7rTxZANP58MXZdV4 uHs5P8biU3Jitahpn2eNreu0rQb34rpvbcxRMQhKZptH+NVfu942WYZDLt3ZWZ2ZNv1fbEEcLdItG 8K6nLrfg==; Received: by zero.zsh.org with local id 1t80RA-000EMt-G3; Mon, 04 Nov 2024 17:00:20 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq4-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.41; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq4-prd-nl1-vmo.edge.unified.services ([84.116.50.41]:6165) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1t80Qf-000DeA-9K; Mon, 04 Nov 2024 16:59:49 +0000 Received: from oxsmtp1-prd-nl1-vmo.nl1.unified.services ([100.107.83.138]) by csmtpq4-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1t80Qe-0001qf-Im for zsh-users@zsh.org; Mon, 04 Nov 2024 17:59:48 +0100 Received: from oxbe14-prd-nl1-vmo.nl1.unified.services ([100.107.83.72]) by oxsmtp1-prd-nl1-vmo.nl1.unified.services with ESMTP id 80Qet95X6CsHt80QetvFDH; Mon, 04 Nov 2024 17:59:48 +0100 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-users@zsh.org X-SourceIP: 100.107.83.72 X-CNFS-Analysis: v=2.4 cv=BaUi0qt2 c=1 sm=1 tr=0 ts=6728fd84 cx=a_exe a=YQry3I751P0aBfd9j3H/qQ==:117 a=OXoQyn4X4dwA:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=JXWj_-Cprq4RoTuOjwYA:9 a=QEXdDO2ut3YA:10 a=E9U9qXoGi2zwcFWpRlMT:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1730739588; bh=6vtDeKiPZi9d2hQU68GVGBcLLQInY15+kqKpVXexd5Y=; h=Date:From:To:In-Reply-To:References:Subject; b=P7/ykhZBj+GxGKI+Q88/8IA9FaPEsvKCfVaVOFWWgbsm5+cVILkhE2GLz7dGvQccC BrmCGnCFPm2FLwxvB08RZ1SkYcezu6U9e3p3D/g0KNMuQumvMBKvavdQlytai4YLBM Oh646wUjbvXX6FftuzmgcgaHxlunC/OWzuhuZ7m/f0kPJ78oQGmoSDKF1/n7WbHKZ9 1eXdqwOBo0HeWwYelOhJVx6/BUkqrG6fVNayzoFPyl/X+tSLxrCz8solYnmKr8durb LfsZmBcn0bHpL9w1Jw6ET40t3WFpAddOWCHFCoFO0dF3uVVNMkRYuvJrGYTHaA6Rwy e7phkHUDq+WGQ== Date: Mon, 4 Nov 2024 16:59:48 +0000 (GMT) From: Peter Stephenson To: Zsh-Users List Message-ID: <1679858811.2827593.1730739588559@mail.virginmedia.com> In-Reply-To: References: Subject: Re: complete as some other sub command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.224.189 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfF++GM7OBUyLn7SGYSmCsulPFP6nFYdCgb4nAzroxmrFjqaKkrNw2TP+ULjJpilfWhP0yrH0ofQMvZm0A7NDHHhoBdWeZSYmHKu8iG0vN4sgm54vRhCn UsCiMNYUBTKZpTRuj4KN5vTIoNHxGY2O03Q7EEsvsDmzDy6p/PF+1bjcw8S/vyxIPh6don3Z8iJGdPllHf1+r9tmRdd7T5AN8VpySOurZJvVUgCWcv5ne9cE X-Seq: 30095 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 04/11/2024 16:42 GMT Pier Paolo Grassi wrote: > > > Hello, is it possible to make a function to inherit the completion contest of another sub command? in my case i would like to make the function gd complete as it was "git diff" The simple way is autoload -X _git # fails if _git is already loaded, harmless compdef _git-diff gd Others may be able to think of gotchas requiring something a bit more sophisticated. pws