mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 16:47:51 +08:00
640c439df7
* Add vcpkg_completions.zsh * Update scripts/vcpkg_completion.zsh
10 lines
268 B
Bash
10 lines
268 B
Bash
|
|
_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
|