From 42981c746e9311b09c862d166e77c9c70e0042d4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 13 Dec 2009 10:03:59 -0500 Subject: [PATCH] Completion Script - zsh - With P.C. Shyamshankar's blessing, updated the _task script for zsh by using the new task built-in _commands command to enumerate all supported commands. This replaces code that forces task usage output, and parses it for commands. - Note that _task for zsh lacks attribute completion. We need a zsh developer to make this enhancement. --- scripts/zsh/_task | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/zsh/_task b/scripts/zsh/_task index 56c78def1..691f8411f 100644 --- a/scripts/zsh/_task +++ b/scripts/zsh/_task @@ -27,10 +27,7 @@ # typeset -g _task_cmds -_task_cmds=($(task rubbish-command | sed -n -e 's/^\s\+task \(\w\+\) .*/\1/p' | grep -v ID)) - -# As of task 1.7.0, -# _task_cmds=(add append annotate completed edit duplicate delete undelete info start stop done undo projects tags summary timesheet history ghistory next calendar active overdue stats import export color version help list long ls newest oldest) +_task_cmds=($(task _commands)) _task() { _arguments -s -S \