Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 530d2b1

Browse files
committed
Speed up zsh target completion
1 parent 083b6b0 commit 530d2b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

misc/zsh-completion

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ __get_targets() {
2323
eval dir="${opt_args[-C]}"
2424
fi
2525
targets_command="ninja -C \"${dir}\" -t targets"
26-
eval ${targets_command} 2>/dev/null | while read -r a b; do echo $a | cut -d ':' -f1; done;
27-
26+
eval ${targets_command} 2>/dev/null | sed "s/^\(.*\): .*$/\1/"
2827
}
2928

3029
__get_tools() {

0 commit comments

Comments
 (0)