MANUAL.adoc 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. This project is a friendly fork of the official Git completion
  2. (`contrib/completion`) and prompt scripts for Bash, Zsh, and possibly other
  3. shells.
  4. Most Git developers use the Bash shell, for which the completion scripts work
  5. rather well, however, Zsh is typically neglected. I've sent many patches to fix
  6. the issues, many have been merged, but many have been ignored, thus the need for
  7. a canonical location of a good, working Zsh completion.
  8. There are advantages for Bash users too. Currently the scripts under `contrib` are tied to the
  9. specific Git version, for example the completion scripts of version v2.40
  10. (https://git.kernel.org/pub/scm/git/git.git/plain/contrib/completion/git-completion.bash?h=v2.40.0[git-completion.bash])
  11. have issues with older versions of Git (e.g. v2.33); the ones in
  12. this project don't.
  13. With `git-completion` you can be sure you are using the latest completion that
  14. works in both shells, and any Git version.
  15. This is a sister project of the
  16. https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/gitfast[Oh My Zsh
  17. gitfast] plugin (that I also maintain), which has similar needs.
  18. == Installation ==
  19. * https://github.com/felipec/git-completion/wiki/Bash[Bash instructions]
  20. * https://github.com/felipec/git-completion/wiki/Zsh[Zsh instructions]
  21. == Improvements from upstream ==
  22. This is a short list of the benefits you get:
  23. * Easier installation
  24. * Tons of bug fixes
  25. * Works with older versions of git
  26. * Zsh: much more options
  27. * Zsh: quoting works properly
  28. * Zsh: automatic suffix removal
  29. For a full list of all the patches on top of upstream git check
  30. https://github.com/felipec/git-completion/wiki/Patches[Patches].