blob: 5044bdf4c7318d49e077fe5fcaf4a07e34a88741 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#autoload
local mod
local -a funcs alts
local -a modules=( example mathfunc system )
for mod in $modules; do
funcs=( ${${${(f)"$(zmodload -Fl zsh/$mod 2>/dev/null)"}:#^+f:*}##+f:} )
alts+=( "module-math-functions.${mod}:math function from zsh/${mod}:compadd -S '(' $funcs" )
done
_alternative $alts
|