]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: clarify installation instruction for zsh
authorMaxim Belsky <public.belsky@gmail.com>
Fri, 11 Oct 2019 17:54:28 +0000 (10:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Oct 2019 04:55:49 +0000 (13:55 +0900)
The original comment does not describe type of ~/.zsh/_git explicitly
and zsh does not warn or fail if a user create it as a dictionary.
So unexperienced users could be misled by the original comment.

There is a small update to clarify it.

Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Maxim Belsky <public.belsky@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.zsh

index 886bf95d1f5940987f5c4411097fd09b000be037..eef4eff53dff12f86d8982e6818ec92086aa4d80 100644 (file)
@@ -11,8 +11,9 @@
 #
 #  zstyle ':completion:*:*:git:*' script ~/.git-completion.zsh
 #
-# The recommended way to install this script is to copy to '~/.zsh/_git', and
-# then add the following to your ~/.zshrc file:
+# 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)