Skip to content

Commit 9f2f75e

Browse files
committed
fish: completions: kmake: Use path for LLVM values
Signed-off-by: Nathan Chancellor <[email protected]>
1 parent aaafc5a commit 9f2f75e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

fish/completions/kmake.fish

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,7 @@ function __kmake_handle_make_var
5757
set desc toolchain
5858

5959
set -a vals 1
60-
for val in $PATH/clang
61-
if test -e $val
62-
set val (path dirname $val | path resolve)/
63-
if not contains $val $vals
64-
set -a vals $val
65-
end
66-
end
67-
end
60+
set -a vals (path filter -fx $PATH/clang | path resolve | path dirname | path sort -u)/
6861
end
6962

7063
set vals (string match -er -- "^$value" $vals)

0 commit comments

Comments
 (0)