diff options
author | Marc Cornellà <marc.cornella@live.com> | 2016-05-21 17:12:04 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-05-21 17:12:04 +0200 |
commit | 970f11d1c4b93ecc1d778477f60ca9297380fe72 (patch) | |
tree | 30ff01649861e7ec6f236f1ba3ada1dc8195e4b3 /plugins/gitfast/_git | |
parent | 841d2b928704b4f8b7b9ca4a4579ea8e2c275f93 (diff) | |
parent | 36e29fbc193c32d14f0d63fbf6ae233a924b1d67 (diff) | |
download | zsh-970f11d1c4b93ecc1d778477f60ca9297380fe72.tar.gz zsh-970f11d1c4b93ecc1d778477f60ca9297380fe72.tar.bz2 zsh-970f11d1c4b93ecc1d778477f60ca9297380fe72.zip |
Merge pull request #5104 from felipec/fc/gitfast
gitfast: update to the latest upstream Git and a couple of fixes
Diffstat (limited to 'plugins/gitfast/_git')
-rw-r--r-- | plugins/gitfast/_git | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/gitfast/_git b/plugins/gitfast/_git index c75b0be7f..6d1b4ecc7 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 @@ -213,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 |