Skip to content

Commit cb9dcbd

Browse files
felipecgitster
authored andcommitted
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>
1 parent 2c7cdc5 commit cb9dcbd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

contrib/completion/git-completion.zsh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
#
55
# Copyright (c) 2012-2013 Felipe Contreras <felipe.contreras@gmail.com>
66
#
7-
# You need git's bash completion script installed somewhere, by default it
8-
# would be the location bash-completion uses.
9-
#
10-
# If your script is somewhere else, you can configure it on your ~/.zshrc:
11-
#
12-
# zstyle ':completion:*:*:git:*' script ~/.git-completion.bash
13-
#
147
# The recommended way to install this script is to make a copy of it as a
158
# file named '_git' inside any directory in your fpath.
169
#
1710
# For example, create a directory '~/.zsh/', copy this file to '~/.zsh/_git',
1811
# and then add the following to your ~/.zshrc file:
1912
#
2013
# fpath=(~/.zsh $fpath)
14+
#
15+
# You need git's bash completion script installed. By default bash-completion's
16+
# location will be used (e.g. /usr/share/bash-completion/completions/git).
17+
#
18+
# If your bash completion script is somewhere else, you can specify the
19+
# location in your ~/.zshrc:
20+
#
21+
# zstyle ':completion:*:*:git:*' script ~/.git-completion.bash
22+
#
2123

2224
complete ()
2325
{

0 commit comments

Comments
 (0)