pineapple/externals/vcpkg/scripts/vcpkg_completion.zsh

10 lines
268 B
Bash
Raw Normal View History

2022-07-23 03:01:36 +02:00
_vcpkg_completions()
{
local vcpkg_executable=${COMP_WORDS[0]}
local remaining_command_line=${COMP_LINE:(${#vcpkg_executable}+1)}
COMPREPLY=($(${vcpkg_executable} autocomplete "${remaining_command_line}" -- 2>/dev/null))
}
complete -F _vcpkg_completions vcpkg