summaryrefslogtreecommitdiff
path: root/provides/zsh/completions/_pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-22 17:48:30 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-22 17:48:30 +0200
commit77f78b2ede7cbb19fb0a2fc0a898f01488855c05 (patch)
tree3899e908751f432870627d5dd596ac9a00ce7607 /provides/zsh/completions/_pkg
parent8172cbf20f4d88c106baa5303f623ecc9cb75624 (diff)
bin/pkg: Declare functions with function()
Diffstat (limited to 'provides/zsh/completions/_pkg')
-rw-r--r--provides/zsh/completions/_pkg3
1 files changed, 2 insertions, 1 deletions
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'