aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorautoantwort <41973254+autoantwort@users.noreply.github.com>2021-06-30 22:16:51 +0200
committerGitHub <noreply@github.com>2021-06-30 13:16:51 -0700
commit640c439df78158904992c51fcbc46f64da113690 (patch)
treef0c34d98548c40257d6d52825b08c7abde08bb7f /scripts
parentbdc455256a1cdd995ed372b4afdfcf583f03802e (diff)
downloadvcpkg-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.zsh9
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