From e38f65bba4bc6d4a57a2272d8960b2312142bd92 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Mon, 25 Apr 2011 15:04:47 +0000 Subject: Simon Ruderich: 29041: _git: Add completion for `tig'. --- Completion/Unix/Command/_git | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_git') 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 -- cgit 1.4.1