From 77f78b2ede7cbb19fb0a2fc0a898f01488855c05 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 22 Oct 2008 17:48:30 +0200 Subject: bin/pkg: Declare functions with function() --- provides/zsh/completions/_pkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'provides/zsh/completions/_pkg') diff --git a/provides/zsh/completions/_pkg b/provides/zsh/completions/_pkg index bae8afa..26d06f0 100644 --- a/provides/zsh/completions/_pkg +++ b/provides/zsh/completions/_pkg @@ -44,7 +44,8 @@ if (( CURRENT == 2 )) { eval) _message 'shell code for evaluation' _wanted function expl 'internal function' \ - compadd $(grep -E '^\S*\s*\(\)\s*{' ~/bin/pkg | cut -d ' ' -f 1) + compadd $(grep -E '^\S*\s*\(\)\s*{' =pkg | cut -d ' ' -f 1) \ + $(grep -E 'function \S* (\(\) )?{' =pkg | cut -d ' ' -f 2) ;; *) _message 'no more arguments' -- cgit v1.2.3