diff --git a/share/completions/git.fish b/share/completions/git.fish index 970c7e1f5..f96a8698e 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -1923,8 +1923,8 @@ for file in $PATH/git-* and continue complete -C "git-$subcommand " >/dev/null - if [ (complete git-$subcommand | count) -gt 0 ] - complete git -f -n "__fish_git_using_command $subcommand" -a "(__fish_git_complete_custom_command $subcommand)" + if [ (complete -c git-$subcommand | count) -gt 0 ] + complete -c git -f -n "__fish_git_using_command $subcommand" -a "(__fish_git_complete_custom_command $subcommand)" end set -a __fish_git_custom_commands_completion $subcommand end diff --git a/share/completions/source.fish b/share/completions/source.fish index f80bd6b8f..0f05b04fd 100644 --- a/share/completions/source.fish +++ b/share/completions/source.fish @@ -1,2 +1,2 @@ -complete source -k -xa '(__fish_complete_suffix .fish)' -complete source -s h -l help -d 'Display help and exit' +complete -c source -k -xa '(__fish_complete_suffix .fish)' +complete -c source -s h -l help -d 'Display help and exit'