diff options
author | Alexey <lesha.ogonkov@gmail.com> | 2020-07-02 10:51:20 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-16 09:46:11 -0700 |
commit | 3ebd9457353f16c523503d6434636e05686d7f6c (patch) | |
tree | 38e0cc591b07fe72e60da4f2b709aea7580d04e8 /contrib/completion | |
parent | Git 2.29-rc2 (diff) | |
download | tgif-3ebd9457353f16c523503d6434636e05686d7f6c.tar.xz |
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>
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/git-completion.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh index ce47e86b60..107869036d 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -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 () { |