aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/vcpkg_completion.zsh
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/vcpkg_completion.zsh
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/vcpkg_completion.zsh')
-rw-r--r--vcpkg/scripts/vcpkg_completion.zsh9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcpkg/scripts/vcpkg_completion.zsh b/vcpkg/scripts/vcpkg_completion.zsh
new file mode 100644
index 0000000..ee499f6
--- /dev/null
+++ b/vcpkg/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