Skip to content

Commit

Permalink
[scripts] Add vcpkg_completions.zsh (microsoft#18274)
Browse files Browse the repository at this point in the history
* Add vcpkg_completions.zsh

* Update scripts/vcpkg_completion.zsh
  • Loading branch information
autoantwort authored Jun 30, 2021
1 parent bdc4552 commit 640c439
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/vcpkg_completion.zsh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 640c439

Please sign in to comment.