bash: completion for gitk aliases
[gitweb.git] / contrib / completion / git-completion.bash
index 8593fd707b5e80b8d8833454744dbe261fa5e9e5..3029f160b013da4452fecf242b959265af9da988 100755 (executable)
@@ -626,6 +626,10 @@ __git_aliased_command ()
                config --get "alias.$1")
        for word in $cmdline; do
                case "$word" in
+               \!gitk|gitk)
+                       echo "gitk"
+                       return
+                       ;;
                \!*)    : shell command alias ;;
                -*)     : option ;;
                *=*)    : setting env ;;
@@ -1087,6 +1091,11 @@ _git_gc ()
        COMPREPLY=()
 }
 
+_git_gitk ()
+{
+       _gitk
+}
+
 _git_grep ()
 {
        __git_has_doubledash && return