diff options
Diffstat (limited to 'misc/zsh-completion')
-rw-r--r-- | misc/zsh-completion | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/misc/zsh-completion b/misc/zsh-completion index fd9b3a7..446e269 100644 --- a/misc/zsh-completion +++ b/misc/zsh-completion @@ -22,9 +22,8 @@ __get_targets() { then 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; - + targets_command="ninja -C \"${dir}\" -t targets all" + eval ${targets_command} 2>/dev/null | cut -d: -f1 } __get_tools() { @@ -66,4 +65,3 @@ _arguments \ '-d+[Enable debugging (use -d list to list modes)]:modes:__modes' \ '-t+[Run a subtool (use -t list to list subtools)]:tools:__tools' \ '*::targets:__targets' - |