Speed up zsh target completion

This commit is contained in:
Ben Falconer 2015-10-30 14:43:32 +00:00
parent 083b6b0406
commit 530d2b1666

View File

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