1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-09 10:01:16 +02:00

29521: _git: Add `user-commands' support again.

This commit is contained in:
Frank Terbeck 2011-07-01 07:38:45 +00:00
parent 77b0e65eda
commit eefe297228
2 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,9 @@
* 29519: Completion/Unix/Command/_git: Pick up addon completions * 29519: Completion/Unix/Command/_git: Pick up addon completions
from $fpath. from $fpath.
* 29521: Completion/Unix/Command/_git: Add `user-commands' support
again.
2011-06-30 Frank Terbeck <ft@bewatermyfriend.org> 2011-06-30 Frank Terbeck <ft@bewatermyfriend.org>
* 29526: Functions/VCS_Info/vcs_info: Set `max-exports' early * 29526: Functions/VCS_Info/vcs_info: Set `max-exports' early
@ -15068,5 +15071,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5386 $ * $Revision: 1.5387 $
***************************************************** *****************************************************

View file

@ -4619,6 +4619,9 @@ _git_commands () {
(( ${+commands[git-${a%%:*}]} )) && addons+=( $a ) (( ${+commands[git-${a%%:*}]} )) && addons+=( $a )
done done
_describe -t third-party-addons 'third party addon' addons && ret=0 _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 return ret
} }