completion: fix zsh installation instructions
- 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>
Alexey committed
Jul 2, 2020 at 10:51 UTC
3ebd9457353f16c523503d6434636e05686d7f6c
1 file changed
+2
-1
contrib/completion/git-completion.zsh
+2
-1
@@ -9,13 +9,14 @@
9
#
10
# If your script is somewhere else, you can configure it on your ~/.zshrc:
11
#
12
-# zstyle ':completion:*:*:git:*' script ~/.git-completion.zsh
12
+# zstyle ':completion:*:*:git:*' script ~/.git-completion.bash
13
#
14
# The recommended way to install this script is to make a copy of it in
15
# ~/.zsh/ directory as ~/.zsh/git-completion.zsh and then add the following
16
# to your ~/.zshrc file:
17
#
18
# fpath=(~/.zsh $fpath)
19
+# autoload -Uz compinit && compinit
20
21
complete ()
22
{