From 640c439df78158904992c51fcbc46f64da113690 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Wed, 30 Jun 2021 22:16:51 +0200 Subject: [PATCH] [scripts] Add vcpkg_completions.zsh (#18274) * Add vcpkg_completions.zsh * Update scripts/vcpkg_completion.zsh --- scripts/vcpkg_completion.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/vcpkg_completion.zsh diff --git a/scripts/vcpkg_completion.zsh b/scripts/vcpkg_completion.zsh new file mode 100644 index 0000000000..ee499f6716 --- /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