diff options
| author | autoantwort <41973254+autoantwort@users.noreply.github.com> | 2021-06-30 22:16:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-30 13:16:51 -0700 |
| commit | 640c439df78158904992c51fcbc46f64da113690 (patch) | |
| tree | f0c34d98548c40257d6d52825b08c7abde08bb7f /scripts | |
| parent | bdc455256a1cdd995ed372b4afdfcf583f03802e (diff) | |
| download | vcpkg-640c439df78158904992c51fcbc46f64da113690.tar.gz vcpkg-640c439df78158904992c51fcbc46f64da113690.zip | |
[scripts] Add vcpkg_completions.zsh (#18274)
* Add vcpkg_completions.zsh
* Update scripts/vcpkg_completion.zsh
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/vcpkg_completion.zsh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/vcpkg_completion.zsh b/scripts/vcpkg_completion.zsh new file mode 100644 index 000000000..ee499f671 --- /dev/null +++ b/scripts/vcpkg_completion.zsh @@ -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 |
