projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
083b6b0
)
Speed up zsh target completion
author
Ben Falconer
<ben@falconers.me.uk>
Fri, 30 Oct 2015 14:43:32 +0000
(14:43 +0000)
committer
Ben Falconer
<ben@falconers.me.uk>
Fri, 30 Oct 2015 14:43:32 +0000
(14:43 +0000)
misc/zsh-completion
patch
|
blob
|
history
diff --git
a/misc/zsh-completion
b/misc/zsh-completion
index
fd9b3a7
..
ad7b87f
100644
(file)
--- a/
misc/zsh-completion
+++ b/
misc/zsh-completion
@@
-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() {