Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Update git completion on macOS
- X-seq: zsh-users 26123
- From: Lawrence Velázquez <vq@xxxxxxxxx>
- To: jost.schulte@xxxxxxxxxxxx
- Subject: Re: Update git completion on macOS
- Date: Fri, 23 Oct 2020 04:42:26 -0400
- Archived-at: <https://zsh.org/users/26123>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-10/E04CC752-C795-4E75-8583-A998B9233703%40larryv.me>
- 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
- Cc: zsh-users@xxxxxxx
- 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==
- In-reply-to: <sympa.1603440549.76406.154@zsh.org>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <sympa.1603440549.76406.154@zsh.org>
- Sender: zsh-users-request@xxxxxxx
> On Oct 23, 2020, at 4:16 AM, jost.schulte@xxxxxxxxxxxx wrote:
>
> 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.
>
> 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.
>
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author