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=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 2668 invoked from network); 23 Oct 2020 08:42:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Oct 2020 08:42:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1603442576; b=IT8DojNN4U4FPwiN7LR2attLApqbXPtU57Z6iYr4GJWRwlU2iM0z6yxu1tQTdUDOsMeNXJfI6K 1zZwsQF5b28csB9iqAECxTCRbujZQspjHk9/lBr1iQxRAm9YLawKrhGWzqQ5j2PBaXLpcchZqf DghC7nFRd9M94fuqrb8Rb7+cmWtUsHqnLdyXLzQ9DsmKYAV64di95T4ATDRM354pXmHzmyMtPn 4EOlsMkxYO3inQ2Q8tiAqlmST851XVSR8JlkoDry9ICHE7A3UJX1w7j1Esst1YC0mnET7FDxqY pBlGNkCCZtyuAX2PBg/foMcRCQY9ymIrMMix/3L+O7vkSg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout3-smtp.messagingengine.com) smtp.remote-ip=64.147.123.19; dkim=pass header.d=larryv.me header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=pass header.from=larryv.me; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1603442576; bh=9bb926mqYgi93AB3602IbqD9MMY/mzBYYyXoxJ+mCWg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=xHyXUduQ0pmttuQgX/LnjNvDltZCjTVSwPsFwFEtec3q8w0s9qZbPSsQrcR/arqdrQtdZChGpi yPkdl5SQmyzLMvq1MXzBu/zG9mMCeGNwRPJOuccAHgSlKdfBQpzULcm1iZh8yMDcHDDhJuCjdj L8R3L+FT33hob+afOJSWOovYKUc7aSkti0vzD79yjwXsd22WWvVm0lSVfPRND3nF6KUW62dC9J DH8D4K9BUysNpVwGvv0cLhX3X5PZfElDhjAKkhNnmeo5TROCJ9M0oQLIndSbsm3webSxFjqTSv fxZbHvtDuRrYVMlcgPOOrvsRonnjh9MvIr0FOAT8cx9yow==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=9bb926mqYgi93AB3602IbqD9MMY/mzBYYyXoxJ+mCWg=; b=XjkITjwR0Djuep9b37kie+5XTf 9YAkyZfSAfiEvP3FNAqVeIBhdPMd4tubpMv1hqeVARUYH+tCyocC3QEkq6uGDSsD7eG4Z5mdtRrcf S9f64XBaP/SxA08Jesr5sU6nhkRDlGVa/J3oDnpWaySXRi3lsIvAb6M3iud4H/DORdLishzXTBLLX Q7RlW1sY842TAxO8QEtDodrEHgzu6wqDPnZTwFJep9ScfWBBmOg3kv4dBd1/V4cSOjcfrYBnz3Fzj GKEyS9rq9wogilxijwSLUf6bny1zeGN1TlfMZC9iImFFRyJaXPAB5WBQhm955/bwd0Ri67Js/u0rj Ctxo7d+w==; Received: from authenticated user by zero.zsh.org with local id 1kVsf2-000K7O-9J; Fri, 23 Oct 2020 08:42:56 +0000 Authentication-Results: zsh.org; iprev=pass (wout3-smtp.messagingengine.com) smtp.remote-ip=64.147.123.19; dkim=pass header.d=larryv.me header.s=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=pass header.from=larryv.me; arc=none Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:38725) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1kVsec-000JkR-RC; Fri, 23 Oct 2020 08:42:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 9F10BB71; Fri, 23 Oct 2020 04:42:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 23 Oct 2020 04:42:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=larryv.me; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm1; bh=9 bb926mqYgi93AB3602IbqD9MMY/mzBYYyXoxJ+mCWg=; b=fNBsNBreZ1eUZ7hY8 sq8YjCRM8mbS001ixOK7Kee9CMqUXbnpPhdT3d+8h8ea0p6vjKiMULa/36FBtjup Agz7+1lq22zztO1VC7o1BKJ9l24uMjzkRbDu/xtGSv2/ZoJmaSeLXqd83KR4qNXX 0alATbb71wpfo9FTjjw1eL3goPvOqOt+yz1tRDNWe5qeVLwkPWskbjOgT4ShzvUi DOFzbs4mQ0VrV6SGsR71NDSNkgzMn2xL5prf2CRiGTNX9Hmlk5Gvu1Dei2hdRz8x aJ9TX1u9gny9k0OWkyn0CjqCJORHRRe4/kAo0tjcHl5MQEP4Kco2dC9h3EOHSpDk mc6AQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=9bb926mqYgi93AB3602IbqD9MMY/mzBYYyXoxJ+mC Wg=; b=JFVYLvdsnKFsRr6BhAMnBAmRN4ZkRwzKEZ70QaZm/7/36vGvhIg+uv0et d/AZlXMW1AC/MTPC4sYFX15oioHJSiSs1VRmKlHwsTvdoNyGfOBnzk+F0d6LCP4z ceGYZPZ1GhAv++dqKi79cwuGbquSl3BagYUt3vR+MwtnJUzCfvbsxb3Idr38c+FA QVV2V2i+kPyoPRxAzELmP3DTqso5Gx2FSXmvfVjzOyV/pmHOM6PQecNS23o20cJL o+F9PsOBvUDvv1T1iY6z4DMGEGHH0T9k9LzMjCPPc6k9fKjF6NhwsUkWpcy6rNLf csNzAIKLhA7lPW8bk+paxZNDCkQyA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkedtgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurheptggguffhjgffgffkfhfvofesthhqmh dthhdtvdenucfhrhhomhepnfgrfihrvghntggvpgggvghljoiiqhhuvgiiuceovhhqsehl rghrrhihvhdrmhgvqeenucggtffrrghtthgvrhhnpeejteffffefhfetueefhefgleegue fhieehteegvedtvefffeevhfekteelleduleenucffohhmrghinhepshhouhhrtggvfhho rhhgvgdrnhgvthenucfkphepudejvddrheekrddvvdekrddvhedtnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvhhqsehlrghrrhihvhdrmhgv X-ME-Proxy: Received: from [172.20.10.4] (unknown [172.58.228.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 9EAE4328005D; Fri, 23 Oct 2020 04:42:27 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: Update git completion on macOS From: =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= In-Reply-To: Date: Fri, 23 Oct 2020 04:42:26 -0400 Cc: zsh-users@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: jost.schulte@tutanota.com X-Mailer: Apple Mail (2.3445.104.17) X-Seq: 26123 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: Archived-At: > On Oct 23, 2020, at 4:16 AM, jost.schulte@tutanota.com wrote: >=20 > Here's my problem: Running on macOS 10.15, I've set up zsh with = completion of > git commands. It must be the complete function that comes with the os > installation of zsh, because I didn't add it and I don't use = oh-my-zsh. In > this complete function the newer git commands like "switch" or = "restore" are > not included, so I want to update it. >=20 > I've researched a while and found the function in = /usr/share/zsh/5.7.1/ > functions/ in the file _git. What I couldn't find is a current = complete > function and also I wasn't able to modify the contents of the file. = Even using > "sudo" I get the error that I don't have permissions to edit it. >=20 > Can anyone help me out please? Assuming that installing 5.8 isn't an option, I think your best bet is to extract _git from 5.8 (http://zsh.sourceforge.net/Arc/source.html) and modify your fpath so the completion system finds it before the system's outdated copy. It's fine to keep it somewhere in your home directory. (Hopefully the 5.8 _git works with 5.7.1, but if it doesn't you can always edit it.) vq=