about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorFrank Terbeck <bewater@users.sourceforge.net>2011-04-25 15:04:47 +0000
committerFrank Terbeck <bewater@users.sourceforge.net>2011-04-25 15:04:47 +0000
commite38f65bba4bc6d4a57a2272d8960b2312142bd92 (patch)
treee23016e37df12ea239f05a4478e1a546424c8989 /Completion/Unix
parent12d12ebc9235a2b7e5e2cb672e6399a083194932 (diff)
downloadzsh-e38f65bba4bc6d4a57a2272d8960b2312142bd92.tar.gz
zsh-e38f65bba4bc6d4a57a2272d8960b2312142bd92.tar.xz
zsh-e38f65bba4bc6d4a57a2272d8960b2312142bd92.zip
Simon Ruderich: 29041: _git: Add completion for `tig'.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_git7
1 files changed, 6 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 0a7128087..4664cfa6e 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -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