Merge branch 'fc/complete-aliased-push'
* fc/complete-aliased-push: completion: fix completing args of aliased "push", "fetch", etc.
This commit is contained in:
commit
961c1b191a
@ -2564,6 +2564,7 @@ __git_main ()
|
||||
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user