From 5db7b6c290a04dcec623d6599ae01b12590b5015 Mon Sep 17 00:00:00 2001 From: Johannes Schlatow Date: Sun, 29 Jul 2012 14:09:56 +0200 Subject: [PATCH] Bug #1045 - Fixed bug where zsh completion did not work for aliases (see #1043). --- scripts/zsh/_task | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/zsh/_task b/scripts/zsh/_task index 7f67f0d66..02ef6096b 100644 --- a/scripts/zsh/_task +++ b/scripts/zsh/_task @@ -50,12 +50,14 @@ _task_conjunctions=( 'and' \ 'or' \ 'xor' \ - '\)' + '\)' \ '\(' ) -_task_cmds=($(task _commands)) +_task_cmds=($(task _commands; task _aliases)) _task_zshcmds=( ${(f)"$(task _zshcommands)"} ) +_task_aliases=($(task _aliases)) + _task() { _arguments -s -S \ "*::task default:_task_default" @@ -242,6 +244,7 @@ _task_default() { _describe -t commands 'task command' _task_zshcmds _describe -t values 'task IDs' _task_zshids + _describe -t aliases 'task aliases' _task_aliases _call_function ret _task_filter return ret