summaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.zsh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2020-10-25 03:13:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-26 22:23:26 (GMT)
commitcb9dcbdbe4b3cb5d13f75ac3282b048bcf7bcc45 (patch)
treeb3858af1df33577c98f87dc5da7ac53b798e0039 /contrib/completion/git-completion.zsh
parent2c7cdc55738257f050e2b83aa94766f50ed60e15 (diff)
downloadgit-cb9dcbdbe4b3cb5d13f75ac3282b048bcf7bcc45.zip
git-cb9dcbdbe4b3cb5d13f75ac3282b048bcf7bcc45.tar.gz
git-cb9dcbdbe4b3cb5d13f75ac3282b048bcf7bcc45.tar.bz2
completion: zsh: reorganize install instructions
Start with the most important thing; the proper location of this script, then follow with the location of the slave script (git-completion.bash). Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.zsh')
-rw-r--r--contrib/completion/git-completion.zsh16
1 files changed, 9 insertions, 7 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
index 712ce2f..05ccaac 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh
@@ -4,13 +4,6 @@
#
# Copyright (c) 2012-2013 Felipe Contreras <felipe.contreras@gmail.com>
#
-# You need git's bash completion script installed somewhere, by default it
-# would be the location bash-completion uses.
-#
-# If your script is somewhere else, you can configure it on your ~/.zshrc:
-#
-# zstyle ':completion:*:*:git:*' script ~/.git-completion.bash
-#
# The recommended way to install this script is to make a copy of it as a
# file named '_git' inside any directory in your fpath.
#
@@ -18,6 +11,15 @@
# and then add the following to your ~/.zshrc file:
#
# fpath=(~/.zsh $fpath)
+#
+# You need git's bash completion script installed. By default bash-completion's
+# location will be used (e.g. /usr/share/bash-completion/completions/git).
+#
+# If your bash completion script is somewhere else, you can specify the
+# location in your ~/.zshrc:
+#
+# zstyle ':completion:*:*:git:*' script ~/.git-completion.bash
+#
complete ()
{