From 02ad673d3bf004f17ec780cb6363ba1c7f928851 Mon Sep 17 00:00:00 2001 From: Ranieri Althoff <1993083+ranisalt@users.noreply.github.com> Date: Tue, 7 Mar 2023 23:55:05 +0100 Subject: [PATCH] Fix fish completions (#30050) --- scripts/vcpkg_completion.fish | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/vcpkg_completion.fish b/scripts/vcpkg_completion.fish index a55d700108..42e4b78dc4 100644 --- a/scripts/vcpkg_completion.fish +++ b/scripts/vcpkg_completion.fish @@ -19,9 +19,7 @@ complete -c vcpkg -f --arguments '(_vcpkg_completions)' set vcpkg_commands ($vcpkg_executable autocomplete) function _set_triplet_arguments - set triplets ($vcpkg_executable help triplet) - set -e triplets[(contains -i -- "Available architecture triplets" $triplets)] - set -e triplets[(contains -i -- "" $triplets)] + set triplets ($vcpkg_executable help triplet | grep "^\s" | cut -d' ' -f3) set triplet_from "" for triplet in $triplets echo (test -n "$triplet") >> temp.txt