1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

Simon Ruderich: 29041: _git: Add completion for `tig'.

This commit is contained in:
Frank Terbeck 2011-04-25 15:04:47 +00:00
parent 12d12ebc92
commit e38f65bba4
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,4 @@
#compdef git git-cvsserver git-receive-pack git-upload-archive git-upload-pack git-shell gitk
#compdef git git-cvsserver git-receive-pack git-upload-archive git-upload-pack git-shell gitk tig
# Some parts of this completion's behaviour are configurable:
#
@ -5966,6 +5966,11 @@ _gitk () {
_git-log
}
(( $+functions[_tig] )) ||
_tig () {
_git-log
}
# Now, for the main driver…
_git() {
if (( CURRENT > 2 )); then