From eefe29722866f792096ec4e09f46b525445e8acc Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Fri, 1 Jul 2011 07:38:45 +0000 Subject: 29521: _git: Add `user-commands' support again. --- Completion/Unix/Command/_git | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Completion/Unix/Command/_git') diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 322491092..29071d1b2 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -4619,6 +4619,9 @@ _git_commands () { (( ${+commands[git-${a%%:*}]} )) && addons+=( $a ) done _describe -t third-party-addons 'third party addon' addons && ret=0 + local -a user_commands + zstyle -a ":completion:${curcontext}:" user-commands user_commands || user_commands=() + _describe -t user-specific-commands 'user specific command' user_commands && ret=0 return ret } -- cgit v1.2.3