summaryrefslogtreecommitdiff
path: root/provides/zsh/completions/_pkg
diff options
context:
space:
mode:
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'