]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: fix zsh installation instructions
authorAlexey <lesha.ogonkov@gmail.com>
Thu, 2 Jul 2020 10:51:20 +0000 (10:51 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Oct 2020 16:46:11 +0000 (09:46 -0700)
- Fix wrong script in completion configuration. zsh wants bash completion
  path here, not path to itself.

- Add `compinit` autoload command, since whole thing didn't work
  if it is not loaded.

Signed-off-by: Alexey <lesha.ogonkov@gmail.com>
Reviewed-by: Stefan Haller <lists@haller-berlin.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.zsh

index ce47e86b60c04c7a398c20ded985f4187e5d3533..107869036d9f847e69a3417011ba84bdfbca48d1 100644 (file)
@@ -9,13 +9,14 @@
 #
 # If your script is somewhere else, you can configure it on your ~/.zshrc:
 #
-#  zstyle ':completion:*:*:git:*' script ~/.git-completion.zsh
+#  zstyle ':completion:*:*:git:*' script ~/.git-completion.bash
 #
 # The recommended way to install this script is to make a copy of it in
 # ~/.zsh/ directory as ~/.zsh/git-completion.zsh and then add the following
 # to your ~/.zshrc file:
 #
 #  fpath=(~/.zsh $fpath)
+#  autoload -Uz compinit && compinit
 
 complete ()
 {