Skip to content

Commit 35a4170

Browse files
felipecgitster
authored andcommitted
completion: zsh: add simple version check
A lot of people are confused about which completion script they are using; Zsh's Git script, or Git's Zsh script. Add a simple helper so they can type 'git zsh<tab>' and find out if they are running the correct one: this. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bbd7f45 commit 35a4170

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/completion/git-completion.zsh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ __gitcomp_file_direct ()
134134
__gitcomp_file "$1" ""
135135
}
136136

137+
_git_zsh ()
138+
{
139+
__gitcomp "v1.1"
140+
}
141+
137142
__git_complete_command ()
138143
{
139144
emulate -L zsh

0 commit comments

Comments
 (0)