mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 01:30:55 +08:00
[scripts] Add vcpkg_completions.zsh (#18274)
* Add vcpkg_completions.zsh * Update scripts/vcpkg_completion.zsh
This commit is contained in:
parent
bdc455256a
commit
640c439df7
9
scripts/vcpkg_completion.zsh
Normal file
9
scripts/vcpkg_completion.zsh
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
_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
|
Loading…
x
Reference in New Issue
Block a user