From: Felipe Contreras <felipe.contreras@gmail.com>
To: zsh-users@zsh.org
Subject: git-completion 1.2 released
Date: Thu, 19 Nov 2020 10:05:31 -0600 [thread overview]
Message-ID: <CAMP44s00vgMW2n8Yp63T91-d1XUMc0Tesmc+ykU+WURokysq_w@mail.gmail.com> (raw)
Hello,
Git-completion is a friendly fork of the official Git completion and
prompt scripts for Zsh and Bash.
The main goal is to provide a more up-to-date completion for Zsh (I'm
the developer), which is basically just a wrapper around the Bash
completion.
Compared to Git upstream, you get many benefits for Zsh, for example:
no extra unnecessary spaces, correct auto suffix removal, colors
without PROMPT_COMMAND, custom aliases, fixed --no-options, and many
more.
If you use the official Zsh completion the main benefit is that it's
blazingly fast. Simply doing "git log <tab>" on the Linux kernel (with
3k+ refs) takes several seconds on the official Zsh completion (about
3 seconds on my machine), with git-complete it's *instantaneous*.
There's other benefits too. Since the Bash completion is actively
maintained by Git developers, everything works as they intend too.
For example "git send-email <tab>" correctly completes branches, as
opposed to files in the Zsh official completion. Also, complex aliases
such as '!f () { }; f' are correctly identified and completed
out-of-the-box.
It's a sister project of the Oh My Zsh gitfast plugin [1], which I maintain too.
Since the last version a testing framework was added, and now all the
completion tests of the Git project pass with the Zsh wrapper too [2].
For installation instructions, and more information, check the wiki
[3], but basically.
* make install
* fpath=(~/.local/share/git-completion/zsh $fpath)
Enjoy.
[1] https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/gitfast
[2] https://travis-ci.org/github/felipec/git-completion
[3] https://github.com/felipec/git-completion/wiki/Zsh
--
Felipe Contreras
next reply other threads:[~2020-11-19 16:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 16:05 Felipe Contreras [this message]
2020-11-21 16:03 ` Daniel Shahaf
2020-11-21 20:14 ` Bart Schaefer
2020-11-22 0:59 ` Felipe Contreras
2020-11-22 0:53 ` Felipe Contreras
2020-11-23 4:33 ` Daniel Shahaf
2020-11-23 7:49 ` Felipe Contreras
2020-11-23 15:44 ` Daniel Shahaf
2020-11-23 18:31 ` Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMP44s00vgMW2n8Yp63T91-d1XUMc0Tesmc+ykU+WURokysq_w@mail.gmail.com \
--to=felipe.contreras@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).