From 169cd8b6ca803721071795c6a207aa97265c8528 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Wed, 18 May 2016 03:07:09 -0500 Subject: gitfast: update to upstream v2.4 Signed-off-by: Felipe Contreras --- plugins/gitfast/_git | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/gitfast/_git') diff --git a/plugins/gitfast/_git b/plugins/gitfast/_git index c75b0be7f..7ed3e3c26 100644 --- a/plugins/gitfast/_git +++ b/plugins/gitfast/_git @@ -104,6 +104,7 @@ __git_zsh_bash_func () local expansion=$(__git_aliased_command "$command") if [ -n "$expansion" ]; then + words[1]=$expansion completion_func="_git_${expansion//-/_}" declare -f $completion_func >/dev/null && $completion_func fi -- cgit v1.2.3-70-g09d2 From 36e29fbc193c32d14f0d63fbf6ae233a924b1d67 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Thu, 5 Jun 2014 18:15:47 -0500 Subject: completion: zsh: improve main function selection Sometimes we want to use the function directly (e.g. _git_checkout), for example when zsh has the option 'complete_aliases', this way, we can do something like: compdef _git gco=git_checkout Signed-off-by: Felipe Contreras --- plugins/gitfast/_git | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/gitfast/_git') diff --git a/plugins/gitfast/_git b/plugins/gitfast/_git index 7ed3e3c26..6d1b4ecc7 100644 --- a/plugins/gitfast/_git +++ b/plugins/gitfast/_git @@ -214,8 +214,10 @@ _git () if (( $+functions[__${service}_zsh_main] )); then __${service}_zsh_main - else + elif (( $+functions[__${service}_main] )); then emulate ksh -c __${service}_main + elif (( $+functions[_${service}] )); then + emulate ksh -c _${service} fi let _ret && _default && _ret=0 -- cgit v1.2.3-70-g09d2